fix update

This commit is contained in:
Uwe Steinmann 2020-02-06 19:01:46 +01:00
parent 7f5908bcf8
commit a97114b77d

View File

@ -31,11 +31,11 @@ CREATE TABLE `new_tblWorkflowLog` (
INSERT INTO `new_tblWorkflowLog` (`id`, `workflowdocumentcontent`, `userid`, `transition`, `date`, `comment`) SELECT `a`.`id`, `b`.`id`, `a`.`userid`, `a`.`transition`, `a`.`date`, `a`.`comment` FROM `tblWorkflowLog` `a` LEFT JOIN `new_tblWorkflowDocumentContent` `b` ON `a`.`document`=`b`.`document` AND `a`.`version`=`b`.`version` AND `a`.`workflow`=`b`.`workflow` WHERE `b`.`document` IS NOT NULL;
ALTER TABLE `tblWorkflowLog` RENAME TO `old_tblWorkflowLog`;
DROP TABLE `tblWorkflowLog`;
ALTER TABLE `new_tblWorkflowLog` RENAME TO `tblWorkflowLog`;
ALTER TABLE `tblWorkflowDocumentContent` RENAME TO `old_tblWorkflowDocumentContent`;
DROP TABLE `tblWorkflowDocumentContent`;
ALTER TABLE `new_tblWorkflowDocumentContent` RENAME TO `tblWorkflowDocumentContent`;
@ -150,7 +150,7 @@ CREATE TABLE `new_tblUsers` (
INSERT INTO new_tblUsers SELECT * FROM tblUsers;
ALTER TABLE tblUsers RENAME TO old_tblUsers;
DROP TABLE tblUsers;
ALTER TABLE new_tblUsers RENAME TO tblUsers;
@ -204,8 +204,3 @@ UPDATE tblVersion set major=6, minor=0, subminor=0;
COMMIT;
DROP TABLE `old_tblUsers`;
DROP TABLE `old_tblWorkflowLog`;
DROP TABLE `old_tblWorkflowDocumentContent`;