You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@rijkvanzanten Does anything speak against passing through the ON UPDATE trigger? Was it simply omitted because it's not relevant in Directus itself (yet, see for example #16472)? Or could it actively lead to conflicts? 🤔
u12206050
changed the title
ON_UPDATE constraint not added wehn new relation is created from schema
ON_UPDATE constraint not added when new relation is created from schema
Feb 3, 2024
Describe the Bug
When importing a schema generated from another environment the
on_update
isn't added to the database.After digging through the Directus code I found out why and am attaching a PR to this issue
To Reproduce
Create a relationship with on_update set to CASCADE, then export the schema and import on another db.
When you export schema from the new db, you will notice the on_update being
NO ACTION
Directus Version
10.8.3
Hosting Strategy
Self-Hosted (Docker Image)
The text was updated successfully, but these errors were encountered: