Index: branches/5.0.x/core/install/upgrades.php =================================================================== diff -u -N -r12808 -r12809 --- branches/5.0.x/core/install/upgrades.php (.../upgrades.php) (revision 12808) +++ branches/5.0.x/core/install/upgrades.php (.../upgrades.php) (revision 12809) @@ -1,6 +1,6 @@ -1, // root + 'CreatedOn' => time(), + 'ResourceId' => $this->Application->NextResourceId(), + ); + + $category_id = $this->Application->findModule('Name', 'Core', 'RootCat'); + + $this->Conn->doUpdate($fields_hash, TABLE_PREFIX . 'Category', 'CategoryId = ' . $category_id); + } + if ($mode == 'after') { // scan theme to fill Theme.TemplateAliases and ThemeFiles.TemplateAlias fields $this->_toolkit->rebuildThemes(); @@ -1278,7 +1290,6 @@ $this->Conn->Query($sql); } } - } } } \ No newline at end of file