I have 5 local instances of directus 10.3 running. In each I tried to create a "image" field (only ine image!) and always get this error:
{
"errors": [
{
"message": "alter table `rwfm_location` add constraint `rwfm_location_main_image_foreign` foreign key (`main_image`) references `directus_files` (`id`) on delete SET NULL -
ER_CANT_CREATE_TABLE: Can't create table `directus`.`rwfm_location` (errno: 150 \"Foreign key constraint is incorrectly formed\")",
"extensions": {
"code": "INTERNAL_SERVER_ERROR"
}
}
]
}
I do not see the error I am making.
Is anybody else experiencing the same problem?
Thank you!
PS: Creating a "Files" field does NOT cause that problem.