Index: branches/RC/core/install/upgrades.php =================================================================== diff -u -N -r11495 -r11501 --- branches/RC/core/install/upgrades.php (.../upgrades.php) (revision 11495) +++ branches/RC/core/install/upgrades.php (.../upgrades.php) (revision 11501) @@ -720,11 +720,10 @@ { // 1. process "Category" table $structure = $this->Conn->Query('DESCRIBE ' . TABLE_PREFIX . 'Category', 'Field'); - if (!array_key_exists('Path', $structure)) { + if (!array_key_exists('Template', $structure)) { // fields from "Pages" table were not added to "Category" table (like before "Proj-CMS" module install) $sql = "ALTER TABLE " . TABLE_PREFIX . "Category ADD COLUMN Template varchar(255) default NULL, - ADD COLUMN Path varchar(255) default NULL, ADD COLUMN l1_Title varchar(255) default '', ADD COLUMN l2_Title varchar(255) default '', ADD COLUMN l3_Title varchar(255) default '', @@ -757,6 +756,12 @@ $this->Conn->Query($sql); } + if (array_key_exists('Path', $structure)) { + $sql = 'ALTER TABLE ' . TABLE_PREFIX . 'Category + DROP Path'; + $this->Conn->Query($sql); + } + // 2. process "PageContent" table if ($this->Conn->TableFound(TABLE_PREFIX . 'PageContent')) { $structure = $this->Conn->Query('DESCRIBE ' . TABLE_PREFIX . 'PageContent', 'Field');