diff --git a/docs/upgrades/upgrade_4.6.9-4.7.0.sql b/docs/upgrades/upgrade_4.6.9-4.7.0.sql index 25516f810..3ef1837b7 100644 --- a/docs/upgrades/upgrade_4.6.9-4.7.0.sql +++ b/docs/upgrades/upgrade_4.6.9-4.7.0.sql @@ -50,11 +50,15 @@ update page set styleId=styleId+974 where styleId>25; update wobject set pageId=pageId+974 where pageId>25; update incrementer set nextValue=nextValue+974 where incrementerId='styleId'; update style set styleId=styleId+974 where styleId>25; -update discussion set messageId=messageId+50000; -update discussion set rid=rid+50000; -update discussion set pid=pid+50000 where pid<>0; +update discussion set messageId=messageId+1000000; +update discussion set messageId=messageId-999000; +update discussion set rid=rid+1000000; +update discussion set rid=rid-999000; +update discussion set pid=pid+1000000 where pid<>0; +update discussion set pid=pid-999000 where pid<>0; update incrementer set nextValue=nextValue+999 where incrementerId='messageId'; -update messageLog set messageLogId=messageLogId+999; +update messageLog set messageLogId=messageLogId+1000000; +update messageLog set messageLogId=messageLogId-999000; update incrementer set nextValue=nextValue+999 where incrementerId='messageLogId'; update incrementer set nextValue=nextValue+999 where incrementerId='imageGroupId'; update imageGroup set parentId=parentId+999 where imageGroupId>0;