I’ve just upgraded from 12.3.1 to 12.4.1 and come across this issue.
Directus 12.4.1 migration defines:
directus_folders.typedirectus_flows.folder- a relationship from
directus_flows.foldertodirectus_folders.id
The migration assumes both sides use UUID database types. The new directus_flows.folder column is UUID, but this existing database was created with directus_folders.id as a fixed-length character field.
The values themselves are UUID-looking strings, for example:
But PostgreSQL distinguishes between uuid and character(36).
Therefore PostgreSQL refused to create the foreign key between them.
Just wondering if others have come across this because other instances of directus have upgraded ok for me.. just this one.