-
Notifications
You must be signed in to change notification settings - Fork 2.8k
do not consider foreign keys are dropped only if constraint oid changes (fix #2238, #2060) #2252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Deploy preview for hasura-docs ready! Built with commit 60e29f2 |
|
Review app for commit 97e3ed4 deployed to Heroku: https://hge-ci-pull-2252.herokuapp.com |
|
Review app for commit 513e7ee deployed to Heroku: https://hge-ci-pull-2252.herokuapp.com |
|
Review app for commit df47b03 deployed to Heroku: https://hge-ci-pull-2252.herokuapp.com |
|
Review app for commit 3a64cbb deployed to Heroku: https://hge-ci-pull-2252.herokuapp.com |
Resolve Conflicts: console/src/components/Services/Data/TableModify/ModifyActions.js
|
Review app for commit 73508bd deployed to Heroku: https://hge-ci-pull-2252.herokuapp.com |
|
Review app for commit bf00aef deployed to Heroku: https://hge-ci-pull-2252.herokuapp.com |
|
Review app for commit 60cb6f7 deployed to Heroku: https://hge-ci-pull-2252.herokuapp.com |
|
Review app for commit 3ef9cab deployed to Heroku: https://hge-ci-pull-2252.herokuapp.com |
|
Review app for commit 60e29f2 deployed to Heroku: https://hge-ci-pull-2252.herokuapp.com |
|
Need to fix constraint name generated. Currently it adds a suffix even if original is going to be deleted. Edit: fixed |
|
Review app https://hge-ci-pull-2252.herokuapp.com is deleted |
…sura#2060) (hasura#2252) foreign keys are considered to be dropped only if constraint oid changes
TODO:-
console should issue combined SQL alter statement on modifying foreign key constraintsDescription
Fixes:- server throws dependency error when user trying to alter a foreign key constraint to define cascade attribute when there is relationship defined on the foreign key.
Affected components
Related Issues
fix #2238, #2060
Solution and Design
"A foreign key is considered to be dropped only if it's
constraint oidandcustom unique idchanges where acustom unique idis a collective reference tocolumn mappingandreference table"Steps to test and verify