prescientmoon
0e0043d2c1
Additionally, add a cli analogue of `score magic` (the `analyse` subcommand)
8 lines
193 B
SQL
8 lines
193 B
SQL
-- Automatically delete all associated scores
|
|
-- every time a play is deleted.
|
|
CREATE TRIGGER auto_delete_scores AFTER DELETE ON plays
|
|
BEGIN
|
|
DELETE FROM scores
|
|
WHERE play_id = OLD.id;
|
|
END;
|