From fad84b942096891fe570d160b917f0317fe3d1ac Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Sun, 4 Aug 2024 20:52:26 +0200 Subject: [PATCH] Force cascade on delete of osu_user --- .../20240724031746_move_osu_mode_data_to_own_tables.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youmubot-db-sql/migrations/20240724031746_move_osu_mode_data_to_own_tables.sql b/youmubot-db-sql/migrations/20240724031746_move_osu_mode_data_to_own_tables.sql index c20af3a..a0433a0 100644 --- a/youmubot-db-sql/migrations/20240724031746_move_osu_mode_data_to_own_tables.sql +++ b/youmubot-db-sql/migrations/20240724031746_move_osu_mode_data_to_own_tables.sql @@ -1,7 +1,7 @@ -- Add migration script here CREATE TABLE osu_user_mode_stats ( - user_id INT NOT NULL REFERENCES osu_users (user_id), + user_id INT NOT NULL REFERENCES osu_users (user_id) ON DELETE CASCADE, mode INT NOT NULL, pp REAL NOT NULL DEFAULT 0, map_length REAL NOT NULL DEFAULT 0,