mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 07:22:11 +00:00
fixed wrong constraint in table tblUserSubstitutes
This commit is contained in:
parent
27110c06a9
commit
e6c7ebaaec
|
@ -100,7 +100,7 @@ CREATE TABLE `tblUserSubstitutes` (
|
|||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `user` (`user`,`substitute`),
|
||||
CONSTRAINT `tblUserSubstitutes_user` FOREIGN KEY (`user`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `tblUserSubstitutes_substitute` FOREIGN KEY (`user`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
|
||||
CONSTRAINT `tblUserSubstitutes_substitute` FOREIGN KEY (`substitute`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
|
||||
);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
|
|
@ -41,7 +41,7 @@ CREATE TABLE `tblUserSubstitutes` (
|
|||
PRIMARY KEY (`id`),
|
||||
UNIQUE (`user`, `substitute`),
|
||||
CONSTRAINT `tblUserSubstitutes_user` FOREIGN KEY (`user`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `tblUserSubstitutes_substitute` FOREIGN KEY (`user`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
|
||||
CONSTRAINT `tblUserSubstitutes_substitute` FOREIGN KEY (`substitute`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
CREATE TABLE `tblDocumentCheckOuts` (
|
||||
|
|
Loading…
Reference in New Issue
Block a user