From 9eed1e9e5e076e0adb5dad42e37c234e98660c09 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Tue, 10 Dec 2002 03:09:40 +0000 Subject: [PATCH] Fixed a database migration bug not discovered until now related to nested image groups converting to collateral folders. See the gotchas file for details. --- docs/gotcha.txt | 10 ++++++++++ docs/upgrades/upgrade_4.6.9-4.7.0.sql | 1 + 2 files changed, 11 insertions(+) diff --git a/docs/gotcha.txt b/docs/gotcha.txt index 01418820e..f6886e8c5 100644 --- a/docs/gotcha.txt +++ b/docs/gotcha.txt @@ -7,6 +7,16 @@ upgrading from one version to the next, or even between multiple versions. Be sure to heed the warnings contained herein as they will save you many hours of grief. +4.9.2 +-------------------------------------------------------------------- + * If you upgraded to any of the previous betas before the release + of 4.9.2 then you will need to execute the following SQL + command on each of your databases. If you went straight from + a previous stable release (4.6.9 or before) to 4.9.2 (or + after), then please disregard this message. + + update imageGroup set parentId=parentId+999 where imageGroupId>0; + 4.9.0 -------------------------------------------------------------------- * If you created any templates using the previous two beta versions 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 d46815dd6..25516f810 100644 --- a/docs/upgrades/upgrade_4.6.9-4.7.0.sql +++ b/docs/upgrades/upgrade_4.6.9-4.7.0.sql @@ -57,6 +57,7 @@ update incrementer set nextValue=nextValue+999 where incrementerId='messageId'; update messageLog set messageLogId=messageLogId+999; 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; update imageGroup set imageGroupId=imageGroupId+999 where imageGroupId>0; update images set imageGroupId=imageGroupId+999 where imageGroupId>0; update incrementer set incrementerId='MailForm_fieldId' where incrementerId='mailFieldId';