Update definitions of constraints only when they changed
Closes #12136 (grafted from fa3839097da4ee5ba663fb3265d81ac9216762bc) --HG-- branch : 6.0
This commit is contained in:
1 parent
0ad727b7bc
commit
953fd5ec9e
1 file changed
+1
-1
@@ -372,7 +372,7 @@ class TableHandler(TableHandlerInterface):
|
||||
column=Identifier(column_name),
|
||||
reference=Identifier(reference),
|
||||
action=SQL(on_delete)))
|
||||
self._update_definitions(constraints=True)
|
||||
self._update_definitions(constraints=True)
|
||||
|
||||
def drop_fk(self, column_name, table=None):
|
||||
self.drop_constraint(column_name + '_fkey', table=table)
|
||||
|
||||
Reference in new issue
Block a user