Skip to content
Snippets Groups Projects
Commit ddd2f69b authored by Haoyu Sun's avatar Haoyu Sun
Browse files

Merge branch '74-delete-the-foreign-key-in-database' into 'main'

Resolve "delete the foreign key in database"

Closes #74

See merge request c24020257/sports-league-application!58
parents 9ebb0483 88c114de
1 merge request!58Resolve "delete the foreign key in database"
......@@ -25,11 +25,11 @@ create table if not exists match_item (
score_b INT DEFAULT 0,
confirm_a BOOLEAN DEFAULT FALSE,
confirm_b BOOLEAN DEFAULT FALSE,
winner_id BIGINT DEFAULT NULL,
winner_id BIGINT DEFAULT NULL
# FOREIGN KEY (player_AId) REFERENCES information(id) ON DELETE CASCADE,
# FOREIGN KEY (player_BId) REFERENCES information(id) ON DELETE CASCADE
FOREIGN KEY (player_AId) REFERENCES information(id) ON DELETE SET NULL,
FOREIGN KEY (player_BId) REFERENCES information(id) ON DELETE SET NULL
# FOREIGN KEY (player_AId) REFERENCES information(id) ON DELETE SET NULL,
# FOREIGN KEY (player_BId) REFERENCES information(id) ON DELETE SET NULL
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment