We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 961b351 commit b264e48Copy full SHA for b264e48
apswutils/db.py
@@ -857,7 +857,7 @@ def sort_key(p):
857
)
858
if column_name in foreign_keys_by_column:
859
column_extras.append(
860
- "REFERENCES [{other_table}]([{other_column}])".format(
+ "REFERENCES [{other_table}]([{other_column}]) ON UPDATE CASCADE ON DELETE CASCADE".format(
861
other_table=foreign_keys_by_column[column_name].other_table,
862
other_column=foreign_keys_by_column[column_name].other_column,
863
0 commit comments