Creating New Area Moves All Pages
When creating a new Area via the Area Manager, ALL pages (including areas) are moved to the newly created area. Somehow areas created by the importer did not cause this issue. Correcting the changes requires restoring from a database backup.
Fixed in Depot. Good thing we found this before release.
In case anyone needs to know how to restore a database without losing all data since the backup, here's an example for the current scenario. In this case, only the vw_page table was messed up, and only the areaid field on that table. If we import our backup to a separate database (e.g. vw_backup), we can run the following query:
Code:
UPDATE vw_vb.forum_vw_page AS p1
INNER JOIN vw_backup.forum_vw_page AS p2 ON (p2.pageid = p1.pageid)
SET p1.areaid = p2.areaid
This will set all areaid values back to their previous values, but only for pages created before the backup. Anything after the backup will remain untouched. If there are some since the backup that were also messed up, those would need their own specific update queries.