change foreign keys for salaries
This commit is contained in:
parent
6bc8d4e9e9
commit
f2f6f04a39
|
@ -163,7 +163,8 @@ CREATE TABLE IF NOT EXISTS "salaries" (
|
|||
"player" TEXT,
|
||||
"salary" NUMERIC,
|
||||
PRIMARY KEY("year","player","team"),
|
||||
foreign key("year","player","team") references "appearances"("year","player","team")
|
||||
foreign key("player") references "people"("ID"),
|
||||
foreign key("year","team") references "teamseasons"("year","team")
|
||||
);
|
||||
|
||||
insert into salaries select distinct * from "transformed"."salaries";
|
||||
|
|
Loading…
Reference in New Issue