add league foreign key
This commit is contained in:
parent
8c475d36e5
commit
4355180c43
|
@ -70,6 +70,7 @@ create table if not exists "teamseasons" (
|
|||
"teamIDretro" TEXT,
|
||||
PRIMARY KEY("year","team"),
|
||||
foreign key("year") references "seasons"("year"),
|
||||
foreign key("league") references "leagues"("ID"),
|
||||
foreign key("team") references "teams"("ID")
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue