Fix foreign key constraints

This commit is contained in:
Eike Kettner
2020-12-14 14:26:24 +01:00
parent 1a2b050990
commit 27d087b14c
2 changed files with 2 additions and 4 deletions

View File

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