Force cascade on delete of osu_user

This commit is contained in:
Natsu Kagami 2024-08-04 20:52:26 +02:00 committed by Natsu Kagami
parent 6e6821510d
commit fad84b9420

View file

@ -1,7 +1,7 @@
-- Add migration script here -- Add migration script here
CREATE TABLE osu_user_mode_stats ( 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, mode INT NOT NULL,
pp REAL NOT NULL DEFAULT 0, pp REAL NOT NULL DEFAULT 0,
map_length REAL NOT NULL DEFAULT 0, map_length REAL NOT NULL DEFAULT 0,