Skip to content

Commit b264e48

Browse files
committed
cascade deletes/updates
1 parent 961b351 commit b264e48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apswutils/db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ def sort_key(p):
857857
)
858858
if column_name in foreign_keys_by_column:
859859
column_extras.append(
860-
"REFERENCES [{other_table}]([{other_column}])".format(
860+
"REFERENCES [{other_table}]([{other_column}]) ON UPDATE CASCADE ON DELETE CASCADE".format(
861861
other_table=foreign_keys_by_column[column_name].other_table,
862862
other_column=foreign_keys_by_column[column_name].other_column,
863863
)

0 commit comments

Comments
 (0)