mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 20:51:30 +00:00
add various indexes
This commit is contained in:
parent
1048e3d181
commit
10cb3e1cb3
|
@ -414,6 +414,7 @@ CREATE TABLE `tblDocumentReviewers` (
|
||||||
UNIQUE KEY `documentID` (`documentID`,`version`,`type`,`required`),
|
UNIQUE KEY `documentID` (`documentID`,`version`,`type`,`required`),
|
||||||
CONSTRAINT `tblDocumentReviewers_document` FOREIGN KEY (`documentID`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE
|
CONSTRAINT `tblDocumentReviewers_document` FOREIGN KEY (`documentID`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
CREATE INDEX `indDocumentReviewersRequired` ON `tblDocumentReviewers` (`required`);
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
|
@ -451,6 +452,7 @@ CREATE TABLE `tblDocumentRecipients` (
|
||||||
UNIQUE KEY `documentID` (`documentID`,`version`,`type`,`required`),
|
UNIQUE KEY `documentID` (`documentID`,`version`,`type`,`required`),
|
||||||
CONSTRAINT `tblDocumentRecipients_document` FOREIGN KEY (`documentID`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE
|
CONSTRAINT `tblDocumentRecipients_document` FOREIGN KEY (`documentID`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
CREATE INDEX `indDocumentRecipientsRequired` ON `tblDocumentRecipients` (`required`);
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
|
@ -487,6 +489,7 @@ CREATE TABLE `tblDocumentRevisors` (
|
||||||
UNIQUE KEY `documentID` (`documentID`,`version`,`type`,`required`),
|
UNIQUE KEY `documentID` (`documentID`,`version`,`type`,`required`),
|
||||||
CONSTRAINT `tblDocumentRevisors_document` FOREIGN KEY (`documentID`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE
|
CONSTRAINT `tblDocumentRevisors_document` FOREIGN KEY (`documentID`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
CREATE INDEX `indDocumentRevisorsRequired` ON `tblDocumentRevisors` (`required`);
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
|
@ -674,6 +677,7 @@ CREATE TABLE `tblMandatoryApprovers` (
|
||||||
PRIMARY KEY (`userID`,`approverUserID`,`approverGroupID`),
|
PRIMARY KEY (`userID`,`approverUserID`,`approverGroupID`),
|
||||||
CONSTRAINT `tblMandatoryApprovers_user` FOREIGN KEY (`userID`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
|
CONSTRAINT `tblMandatoryApprovers_user` FOREIGN KEY (`userID`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
CREATE INDEX `indDocumentApproversRequired` ON `tblDocumentApprovers` (`required`);
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -216,6 +216,7 @@ CREATE TABLE `tblDocumentApprovers` (
|
||||||
`required` INTEGER NOT NULL default '0',
|
`required` INTEGER NOT NULL default '0',
|
||||||
UNIQUE (`documentID`,`version`,`type`,`required`)
|
UNIQUE (`documentID`,`version`,`type`,`required`)
|
||||||
) ;
|
) ;
|
||||||
|
CREATE INDEX `indDocumentApproversRequired` ON `tblDocumentApprovers` (`required`);
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
|
@ -344,6 +345,7 @@ CREATE TABLE `tblDocumentReviewers` (
|
||||||
`required` INTEGER NOT NULL default '0',
|
`required` INTEGER NOT NULL default '0',
|
||||||
UNIQUE (`documentID`,`version`,`type`,`required`)
|
UNIQUE (`documentID`,`version`,`type`,`required`)
|
||||||
) ;
|
) ;
|
||||||
|
CREATE INDEX `indDocumentReviewersRequired` ON `tblDocumentReviewers` (`required`);
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
|
@ -374,6 +376,7 @@ CREATE TABLE `tblDocumentRecipients` (
|
||||||
`required` INTEGER NOT NULL default '0',
|
`required` INTEGER NOT NULL default '0',
|
||||||
UNIQUE (`documentID`,`version`,`type`,`required`)
|
UNIQUE (`documentID`,`version`,`type`,`required`)
|
||||||
) ;
|
) ;
|
||||||
|
CREATE INDEX `indDocumentRecipientsRequired` ON `tblDocumentRecipients` (`required`);
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
|
@ -405,6 +408,7 @@ CREATE TABLE `tblDocumentRevisors` (
|
||||||
`startdate` TEXT default NULL,
|
`startdate` TEXT default NULL,
|
||||||
UNIQUE (`documentID`,`version`,`type`,`required`)
|
UNIQUE (`documentID`,`version`,`type`,`required`)
|
||||||
) ;
|
) ;
|
||||||
|
CREATE INDEX `indDocumentRevisorsRequired` ON `tblDocumentRevisors` (`required`);
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user