* Actually enable the inventory upgrade sql if appropriate
parent
b70da6ac19
commit
dbcd6112b9
|
@ -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"]);
|
||||||
|
|
Loading…
Reference in New Issue