From 16a6d60a21860d8ae49715f9077c22a3f1bc54bc Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sun, 22 Mar 2009 18:35:16 +0000 Subject: [PATCH] Make offline gives work in SQLite standalones --- OpenSim/Data/SQLite/SQLiteInventoryStore.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/OpenSim/Data/SQLite/SQLiteInventoryStore.cs b/OpenSim/Data/SQLite/SQLiteInventoryStore.cs index 3be320f843..34a6364789 100644 --- a/OpenSim/Data/SQLite/SQLiteInventoryStore.cs +++ b/OpenSim/Data/SQLite/SQLiteInventoryStore.cs @@ -295,7 +295,15 @@ namespace OpenSim.Data.SQLite fillItemRow(inventoryRow, item); } + invItemsDa.Update(ds, "inventoryitems"); + + DataTable inventoryFolderTable = ds.Tables["inventoryfolders"]; + + inventoryRow = inventoryFolderTable.Rows.Find(Util.ToRawUuidString(item.Folder)); + inventoryRow["version"] = (int)inventoryRow["version"] + 1; + + invFoldersDa.Update(ds, "inventoryfolders"); } }