added missing column in tblWorkflowDocumentContent

This commit is contained in:
steinm 2013-02-07 17:00:25 +00:00
parent 5572ad52c7
commit c67213e26b
3 changed files with 4 additions and 1 deletions

View File

@ -665,6 +665,7 @@ CREATE TABLE tblWorkflowDocumentContent (
`document` int(11) DEFAULT NULL, `document` int(11) DEFAULT NULL,
`version` smallint(5) DEFAULT NULL, `version` smallint(5) DEFAULT NULL,
`state` int(11) DEFAULT NULL, `state` int(11) DEFAULT NULL,
`date` datetime NOT NULL default '0000-00-00 00:00:00',
CONSTRAINT `tblWorkflowDocument_document` FOREIGN KEY (`document`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE, CONSTRAINT `tblWorkflowDocument_document` FOREIGN KEY (`document`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE,
CONSTRAINT `tblWorkflowDocument_workflow` FOREIGN KEY (`workflow`) REFERENCES `tblWorkflows` (`id`) ON DELETE CASCADE, CONSTRAINT `tblWorkflowDocument_workflow` FOREIGN KEY (`workflow`) REFERENCES `tblWorkflows` (`id`) ON DELETE CASCADE,
CONSTRAINT `tblWorkflowDocument_state` FOREIGN KEY (`state`) REFERENCES `tblWorkflowStates` (`id`) ON DELETE CASCADE CONSTRAINT `tblWorkflowDocument_state` FOREIGN KEY (`state`) REFERENCES `tblWorkflowStates` (`id`) ON DELETE CASCADE

View File

@ -576,7 +576,8 @@ CREATE TABLE tblWorkflowDocumentContent (
`workflow` INTEGER DEFAULT NULL REFERENCES `tblWorkflows` (`id`) ON DELETE CASCADE, `workflow` INTEGER DEFAULT NULL REFERENCES `tblWorkflows` (`id`) ON DELETE CASCADE,
`document` INTEGER DEFAULT NULL REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE, `document` INTEGER DEFAULT NULL REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE,
`version` smallint DEFAULT NULL, `version` smallint DEFAULT NULL,
`state` INTEGER DEFAULT NULL REFERENCES `tblWorkflowStates` (`id`) ON DELETE CASCADE `state` INTEGER DEFAULT NULL REFERENCES `tblWorkflowStates` (`id`) ON DELETE CASCADE,
`date` datetime NOT NULL default '0000-00-00 00:00:00'
) ; ) ;
-- -------------------------------------------------------- -- --------------------------------------------------------

View File

@ -90,6 +90,7 @@ CREATE TABLE tblWorkflowDocumentContent (
`document` int(11) DEFAULT NULL, `document` int(11) DEFAULT NULL,
`version` smallint(5) DEFAULT NULL, `version` smallint(5) DEFAULT NULL,
`state` int(11) DEFAULT NULL, `state` int(11) DEFAULT NULL,
`date` datetime NOT NULL default '0000-00-00 00:00:00',
CONSTRAINT `tblWorkflowDocument_document` FOREIGN KEY (`document`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE, CONSTRAINT `tblWorkflowDocument_document` FOREIGN KEY (`document`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE,
CONSTRAINT `tblWorkflowDocument_workflow` FOREIGN KEY (`workflow`) REFERENCES `tblWorkflows` (`id`) ON DELETE CASCADE, CONSTRAINT `tblWorkflowDocument_workflow` FOREIGN KEY (`workflow`) REFERENCES `tblWorkflows` (`id`) ON DELETE CASCADE,
CONSTRAINT `tblWorkflowDocument_state` FOREIGN KEY (`state`) REFERENCES `tblWorkflowStates` (`id`) ON DELETE CASCADE CONSTRAINT `tblWorkflowDocument_state` FOREIGN KEY (`state`) REFERENCES `tblWorkflowStates` (`id`) ON DELETE CASCADE