From c0fc470d725391795c39abf20fc046c213d0435a Mon Sep 17 00:00:00 2001 From: Laurent Le Houerou Date: Thu, 21 Mar 2024 17:57:01 +0000 Subject: [PATCH] delete foreign keys on teams in games table --- db/migrations/00001_init.sql | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/db/migrations/00001_init.sql b/db/migrations/00001_init.sql index 22df959..267ed85 100644 --- a/db/migrations/00001_init.sql +++ b/db/migrations/00001_init.sql @@ -71,17 +71,14 @@ fixture_slug TEXT NOT NULL, FOREIGN KEY (fixture_slug) REFERENCES fixtures (slug), away_team_slug TEXT NOT NULL, - FOREIGN KEY (away_team_slug) REFERENCES teams (slug), away_goals INTEGER NOT NULL, away_extra_time_score INTEGER NOT NULL, away_penalty_score INTEGER NOT NULL, home_team_slug TEXT NOT NULL, - FOREIGN KEY (home_team_slug) REFERENCES teams (slug), home_goals INTEGER NOT NULL, home_extra_time_score INTEGER NOT NULL, home_penalty_score INTEGER NOT NULL, - winner_team_slug TEXT, - FOREIGN KEY (winner_team_slug) REFERENCES teams (slug) + winner_team_slug TEXT ); CREATE TABLE IF NOT EXISTS players ( @@ -202,4 +199,4 @@ DROP TABLE IF EXISTS countries; - DROP TABLE IF EXISTS zones; \ No newline at end of file + DROP TABLE IF EXISTS zones;