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