delete foreign keys on teams in games table
This commit is contained in:
parent
33f404fa20
commit
c0fc470d72
@ -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;
|
||||
DROP TABLE IF EXISTS zones;
|
||||
|
Loading…
Reference in New Issue
Block a user