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:
parent
4ed0cadeb8
commit
0e0043d2c1
14 changed files with 542 additions and 200 deletions
migrations/04-auto-delete-scores
7
migrations/04-auto-delete-scores/up.sql
Normal file
7
migrations/04-auto-delete-scores/up.sql
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue