mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
embrace by transaction, set version in tblVersion
This commit is contained in:
parent
03afa06f01
commit
22d0254762
|
@ -1,3 +1,5 @@
|
|||
START TRANSACTION;
|
||||
|
||||
ALTER TABLE tblDocumentLinks ADD CONSTRAINT `tblDocumentLinks_target` FOREIGN KEY (`target`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE;
|
||||
|
||||
ALTER TABLE tblDocumentReviewLog ADD CONSTRAINT `tblDocumentReviewLog_review` FOREIGN KEY (`reviewID`) REFERENCES `tblDocumentReviewers` (`reviewID`) ON DELETE CASCADE;
|
||||
|
@ -105,3 +107,8 @@ CREATE TABLE tblWorkflowMandatoryWorkflow (
|
|||
CONSTRAINT `tblWorkflowMandatoryWorkflow_workflow` FOREIGN KEY (`workflow`) REFERENCES `tblWorkflows` (`id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `tblWorkflowMandatoryWorkflow_userid` FOREIGN KEY (`userid`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
UPDATE tblVersion set date=NOW(), major=4, minor=0, subminor=0;
|
||||
|
||||
COMMIT;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user