change foreign key for managershalf

This commit is contained in:
Nick Griffey 2024-01-29 21:57:31 -06:00
parent f0b4c0c3b5
commit 8f519b8437
1 changed files with 1 additions and 2 deletions

View File

@ -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;