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
I looked into this, and it looks like it's because the view referential_constraints does not contain the table name, leading to duplicate entries. I have a draft PR in #2025 which looks like it might fix the issue.
given the schema
atlas will generate
even though the table_c does not specify CASCADE on update or delete.
however naming the foreign_keys with different names (e.g.
table_ab_fk
andtable_ac_fk
) produces the expected result:it seems strange not to get an error in the first case, but to get unexpected coupling of the table foreign key behavior.
@a8m tagging you in this as requested in discord discussion
The text was updated successfully, but these errors were encountered: