bang history delete on cascade

This commit is contained in:
Fabian Freund
2025-11-21 07:03:09 +01:00
parent ef8d3c35fc
commit c5afaf5221
8 changed files with 2436 additions and 5 deletions
@@ -2469,7 +2469,7 @@ class BangHistory extends i0.Table
const i0.EnumIndexConverter<i2.BangGroup>(i2.BangGroup.values);
@override
List<String> get customConstraints => const [
'FOREIGN KEY("trigger", "group")REFERENCES bang("trigger", "group")',
'FOREIGN KEY("trigger", "group")REFERENCES bang("trigger", "group")ON DELETE CASCADE',
];
@override
bool get dontWriteConstraints => true;