mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
add missing indexes
This commit is contained in:
parent
91b163a825
commit
ffbc685752
|
@ -30,6 +30,7 @@ CREATE TABLE `tblDocumentRecipients` (
|
|||
`required` INTEGER NOT NULL default '0',
|
||||
UNIQUE (`documentID`,`version`,`type`,`required`)
|
||||
) ;
|
||||
CREATE INDEX `indDocumentRecipientsRequired` ON `tblDocumentRecipients` (`required`);
|
||||
|
||||
CREATE TABLE `tblDocumentReceiptLog` (
|
||||
`receiptLogID` INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
|
@ -39,6 +40,7 @@ CREATE TABLE `tblDocumentReceiptLog` (
|
|||
`date` TEXT NOT NULL,
|
||||
`userID` INTEGER NOT NULL default 0 REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
|
||||
) ;
|
||||
CREATE INDEX `indDocumentReceiptLogReceiptID` ON `tblDocumentReceiptLog` (`receiptID`);
|
||||
|
||||
CREATE TABLE `tblDocumentRevisors` (
|
||||
`revisionID` INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
|
@ -49,6 +51,7 @@ CREATE TABLE `tblDocumentRevisors` (
|
|||
`startdate` TEXT default NULL,
|
||||
UNIQUE (`documentID`,`version`,`type`,`required`)
|
||||
) ;
|
||||
CREATE INDEX `indDocumentRevisorsRequired` ON `tblDocumentRevisors` (`required`);
|
||||
|
||||
CREATE TABLE `tblDocumentRevisionLog` (
|
||||
`revisionLogID` INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
|
@ -58,8 +61,9 @@ CREATE TABLE `tblDocumentRevisionLog` (
|
|||
`date` TEXT NOT NULL,
|
||||
`userID` INTEGER NOT NULL default 0 REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
|
||||
) ;
|
||||
CREATE INDEX `indDocumentRevisionLogRevisionID` ON `tblDocumentRevisionLog` (`revisionID`);
|
||||
|
||||
CREATE TABLE tblTransmittals (
|
||||
CREATE TABLE `tblTransmittals` (
|
||||
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
`name` text NOT NULL,
|
||||
`comment` text NOT NULL,
|
||||
|
@ -144,6 +148,12 @@ CREATE TABLE `tblArosAcos` (
|
|||
UNIQUE (aco, aro)
|
||||
) ;
|
||||
|
||||
CREATE INDEX `indDocumentStatusLogStatusID` ON `tblDocumentStatusLog` (`StatusID`);
|
||||
CREATE INDEX `indDocumentApproversRequired` ON `tblDocumentApprovers` (`required`);
|
||||
CREATE INDEX `indDocumentApproveLogApproveID` ON `tblDocumentApproveLog` (`approveID`);
|
||||
CREATE INDEX `indDocumentReviewersRequired` ON `tblDocumentReviewers` (`required`);
|
||||
CREATE INDEX `indDocumentReviewLogReviewID` ON `tblDocumentReviewLog` (`reviewID`);
|
||||
|
||||
UPDATE tblVersion set major=6, minor=0, subminor=0;
|
||||
|
||||
COMMIT;
|
||||
|
|
Loading…
Reference in New Issue
Block a user