remove foreign key reference to deleted table

This commit is contained in:
filifa 2024-05-05 00:02:47 -05:00
parent 708ef272b1
commit e3288708a6
1 changed files with 1 additions and 2 deletions

View File

@ -45,8 +45,7 @@ CREATE TABLE IF NOT EXISTS main."halloffame" (
"category" TEXT,
"needed_note" text,
PRIMARY KEY("player","year","votedBy")
foreign key("player") references "people"("ID"),
foreign key("year","votedBy") references "halloffamereqs"("year","votedBy")
foreign key("player") references "people"("ID")
);
insert into main.halloffame select distinct * from temp.halloffame;