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;