Skip to content

Commit

Permalink
Fix foreign key constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
eikek committed Dec 14, 2020
1 parent 1a2b050 commit 27d087b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ CREATE TABLE "rememberme" (
"login" varchar(254) not null,
"created" timestamp not null,
"uses" int not null,
FOREIGN KEY ("cid") REFERENCES "user_"("cid"),
FOREIGN KEY ("login") REFERENCES "user_"("login")
FOREIGN KEY ("cid","login") REFERENCES "user_"("cid","login")
);
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ CREATE TABLE `rememberme` (
`login` varchar(254) not null,
`created` timestamp not null,
`uses` int not null,
FOREIGN KEY (`cid`) REFERENCES `user_`(`cid`),
FOREIGN KEY (`login`) REFERENCES `user_`(`login`)
FOREIGN KEY (`cid`,`login`) REFERENCES `user_`(`cid`,`login`)
);

0 comments on commit 27d087b

Please sign in to comment.