* Actually enable the inventory upgrade sql if appropriate

0.6.0-stable
Justin Clarke Casey 2008-04-30 17:11:59 +00:00
parent b70da6ac19
commit dbcd6112b9
1 changed files with 7 additions and 6 deletions

View File

@ -101,10 +101,11 @@ namespace OpenSim.Data.MySQL
} }
// if the table is already at the current version, then we can exit immediately // if the table is already at the current version, then we can exit immediately
// if (oldVersion == "Rev. 2") if (oldVersion.StartsWith("Rev. 2;"))
// return; {
m_log.Info("[INVENTORY DB]: Upgrading inventory items table from Rev. 2 to Rev. 3");
// database.ExecuteResourceSql("UpgradeItemsTableToVersion2.sql"); database.ExecuteResourceSql("UpgradeItemsTableToVersion3.sql");
}
} }
private void TestTables(MySqlConnection conn) private void TestTables(MySqlConnection conn)
@ -115,8 +116,8 @@ namespace OpenSim.Data.MySQL
tableList["inventoryitems"] = null; tableList["inventoryitems"] = null;
database.GetTableVersion(tableList); database.GetTableVersion(tableList);
m_log.Info("[MYSQL]: Inventory Folder Version: " + tableList["inventoryfolders"]); m_log.Info("[INVENTORY DB]: Inventory Folder Version: " + tableList["inventoryfolders"]);
m_log.Info("[MYSQL]: Inventory Items Version: " + tableList["inventoryitems"]); m_log.Info("[INVENTORY DB]: Inventory Items Version: " + tableList["inventoryitems"]);
UpgradeFoldersTable(tableList["inventoryfolders"]); UpgradeFoldersTable(tableList["inventoryfolders"]);
UpgradeItemsTable(tableList["inventoryitems"]); UpgradeItemsTable(tableList["inventoryitems"]);