From a964f20bdca2d85a13dec505c8ad9c48db823913 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 13 Jul 2016 07:39:49 +0200 Subject: [PATCH] fix migration sql statements The changes still refer to the database used in mydms 1.7.2 --- install/update-3.4.0/update.sql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install/update-3.4.0/update.sql b/install/update-3.4.0/update.sql index 510676fe9..dfc4b7a75 100644 --- a/install/update-3.4.0/update.sql +++ b/install/update-3.4.0/update.sql @@ -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');