Skip to content

Commit

Permalink
Bug 3419: ignore 'options' if present when comparing foreign keys
Browse files Browse the repository at this point in the history
  • Loading branch information
djmitche committed Feb 5, 2016
1 parent 31960aa commit 3d4681b
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -130,6 +130,8 @@ def thd_assertForeignKeys(self, conn, exp, with_constrained_columns=[]):
for fk in fks:
del fk['name'] # schema dependent
del fk['referred_schema'] # idem
if 'options' in fk:
del fk['options'] # newer versions of sqlalchemy

# finally, assert
if fks != exp:
Expand Down

0 comments on commit 3d4681b

Please sign in to comment.