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,
|
||||
"L" NUMERIC,
|
||||
PRIMARY KEY("ID","year","team","inseason","half"),
|
||||
foreign key("ID") references "people"("ID"),
|
||||
foreign key("year","team") references "teamseasons"("year","team")
|
||||
foreign key("ID","year","team","inseason") references "managers"("ID","year","team","inseason")
|
||||
);
|
||||
|
||||
insert into managershalf select distinct * from "transformed".managershalf;
|
||||
|
|
Loading…
Reference in New Issue