fix migration sql statements

The changes still refer to the database used in mydms 1.7.2
This commit is contained in:
Uwe Steinmann 2016-07-13 07:39:49 +02:00
parent f323d1cabf
commit a964f20bdc

View File

@ -29,6 +29,8 @@ END
START TRANSACTION;
ALTER TABLE `tblDocumentContent` MODIFY `version` smallint(5) unsigned NOT NULL;
ALTER TABLE tblACLs ENGINE=InnoDB;
ALTER TABLE tblCategory ENGINE=InnoDB;
@ -99,6 +101,8 @@ ALTER TABLE tblDocuments ADD CONSTRAINT `tblDocuments_folder` FOREIGN KEY (`fold
CALL DROPFK('tblDocumentContent', 'tblDocumentDocument_document');
ALTER TABLE tblDocumentContent DROP PRIMARY KEY;
ALTER TABLE tblDocumentContent ADD CONSTRAINT `tblDocumentContent_document` FOREIGN KEY (`document`) REFERENCES `tblDocuments` (`id`);
CALL DROPFK('tblDocumentLinks', 'tblDocumentLinks_user');