change foreign key for managershalf
This commit is contained in:
parent
f0b4c0c3b5
commit
8f519b8437
|
@ -599,8 +599,7 @@ CREATE TABLE IF NOT EXISTS "managershalf" (
|
||||||
"W" NUMERIC,
|
"W" NUMERIC,
|
||||||
"L" NUMERIC,
|
"L" NUMERIC,
|
||||||
PRIMARY KEY("ID","year","team","inseason","half"),
|
PRIMARY KEY("ID","year","team","inseason","half"),
|
||||||
foreign key("ID") references "people"("ID"),
|
foreign key("ID","year","team","inseason") references "managers"("ID","year","team","inseason")
|
||||||
foreign key("year","team") references "teamseasons"("year","team")
|
|
||||||
);
|
);
|
||||||
|
|
||||||
insert into managershalf select distinct * from "transformed".managershalf;
|
insert into managershalf select distinct * from "transformed".managershalf;
|
||||||
|
|
Loading…
Reference in New Issue