[PR #54] Foreign key change tries to drop empty named constraint #114

Closed
opened 2026-02-25 21:33:21 +03:00 by kerem · 0 comments
Owner

Original Pull Request: https://github.com/DBDiff/DBDiff/pull/54

State: closed
Merged: No


When DBDiff finds it needs to change a foreign key, it will create two statements, a drop and a add. The add is fine, but the drop is created without a name.

It will show up as ALTER TABLE `sometable` DROP CONSTRAINT ``;. This patch should fix the problem;

**Original Pull Request:** https://github.com/DBDiff/DBDiff/pull/54 **State:** closed **Merged:** No --- When DBDiff finds it needs to change a foreign key, it will create two statements, a drop and a add. The add is fine, but the drop is created without a name. It will show up as ```ALTER TABLE `sometable` DROP CONSTRAINT ``;```. This patch should fix the problem;
kerem 2026-02-25 21:33:21 +03:00
kerem changed title from [PR #54] [CLOSED] Foreign key change tries to drop empty named constraint to [PR #54] Foreign key change tries to drop empty named constraint 2026-02-27 12:37:59 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/DBDiff#114
No description provided.