-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add primary key constraint name comparison (#12)
* Add primary key constraint name comparison Change usage of SQLAlchemy's get_primary_keys to get_pk_constraint which returns a dict with 'constrained_columns' containing the primary key fields and optionally 'name' with the name of the pk constraint. Update get_primary_keys_info to compare the entire dicts and apply ignores on the constraint name rather than the key names if a 'name' field exists. If 'name' does not exist, the primary key columns are compared instead. * Check for None in pk constraint names
- Loading branch information
1 parent
f54fe4c
commit b46282a
Showing
2 changed files
with
75 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters