1
Fork 0

Add more tests (and fix the score delete command)

Additionally, add a cli analogue of `score magic` (the `analyse`
subcommand)
This commit is contained in:
prescientmoon 2024-09-17 02:00:36 +02:00
parent 4ed0cadeb8
commit 0e0043d2c1
Signed by: prescientmoon
SSH key fingerprint: SHA256:WFp/cO76nbarETAoQcQXuV+0h7XJsEsOCI0UsyPIy6U
14 changed files with 542 additions and 200 deletions
migrations/04-auto-delete-scores

View file

@ -0,0 +1,7 @@
-- 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;