mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 07:22:11 +00:00
fix update
This commit is contained in:
parent
7f5908bcf8
commit
a97114b77d
|
@ -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`;
|
||||
|
|
Loading…
Reference in New Issue
Block a user