mirror of
https://github.com/DBDiff/DBDiff.git
synced 2026-04-25 05:15:49 +03:00
[GH-ISSUE #17] Dropping foreign key columns #148
Labels
No labels
bug
enhancement
good first issue
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/DBDiff#148
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @majdzadeh on GitHub (Aug 9, 2016).
Original GitHub issue: https://github.com/DBDiff/DBDiff/issues/17
Hi
When dropping foreign key columns using alter table statements, dbdiff uses "DROP CONSTRAINT". Instead, it should use "DROP FOREIGN KEY".
@jasdeepkhalsa commented on GitHub (Aug 25, 2016):
@majdzadeh Could you please explain the difference and implications for us so we're clear? Thanks
@djshen-ponddy commented on GitHub (Aug 29, 2016):
According to official documentation, to drop foreign keys we should use
DROP FOREIGN KEYinstead ofDROP CONSTRAINT@jasdeepkhalsa commented on GitHub (Nov 24, 2017):
This is be part of the same cleanup as #41