change keys
This commit is contained in:
parent
4f8694bfb9
commit
a4767f36d4
|
@ -608,9 +608,11 @@ CREATE TABLE "allstarstartingpos" (
|
|||
"player" NUMERIC,
|
||||
"year" NUMERIC,
|
||||
"gameNum" NUMERIC,
|
||||
"league" NUMERIC,
|
||||
"startingPos" NUMERIC,
|
||||
primary key("player","year","gameNum","startingPos"),
|
||||
foreign key("player","year","gameNum") references "allstars"("player","year","gameNum")
|
||||
primary key("year","gameNum","league","startingPos"),
|
||||
foreign key("player","year","gameNum") references "allstars"("player","year","gameNum"),
|
||||
foreign key("league") references "leagues"("ID")
|
||||
);
|
||||
|
||||
insert into allstarstartingpos select distinct * from "transformed".allstarstartingpos;
|
||||
|
|
Loading…
Reference in New Issue