Update definitions of constraints only when they changed

Closes #12136
(grafted from fa3839097da4ee5ba663fb3265d81ac9216762bc)

--HG--
branch : 6.0
This commit is contained in:
Nicolas Évrard committed 2023-03-13 17:58:27 +01:00
1 parent 0ad727b7bc
commit 953fd5ec9e
1 file changed
+1 -1
+1 -1
View File
@@ -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)