Add SQLite and the missing migrations files for last commit

0.6.1-post-fixes
Melanie Thielker 2008-11-14 19:00:14 +00:00
parent d66f3993de
commit 1bd0721dbe
3 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,5 @@
BEGIN;
alter table inventoryitems add column inventoryGroupPermissions integer unsigned not null default 0;
COMMIT;

View File

@ -0,0 +1,5 @@
BEGIN;
alter table inventoryitems add column inventoryGroupPermissions integer unsigned not null default 0;
COMMIT;

View File

@ -151,6 +151,7 @@ namespace OpenSim.Data.SQLite
item.CurrentPermissions = Convert.ToUInt32(row["inventoryCurrentPermissions"]); item.CurrentPermissions = Convert.ToUInt32(row["inventoryCurrentPermissions"]);
item.BasePermissions = Convert.ToUInt32(row["inventoryBasePermissions"]); item.BasePermissions = Convert.ToUInt32(row["inventoryBasePermissions"]);
item.EveryOnePermissions = Convert.ToUInt32(row["inventoryEveryOnePermissions"]); item.EveryOnePermissions = Convert.ToUInt32(row["inventoryEveryOnePermissions"]);
item.GroupPermissions = Convert.ToUInt32(row["inventoryGroupPermissions"]);
// new fields // new fields
if (!Convert.IsDBNull(row["salePrice"])) if (!Convert.IsDBNull(row["salePrice"]))
@ -195,6 +196,7 @@ namespace OpenSim.Data.SQLite
row["inventoryCurrentPermissions"] = item.CurrentPermissions; row["inventoryCurrentPermissions"] = item.CurrentPermissions;
row["inventoryBasePermissions"] = item.BasePermissions; row["inventoryBasePermissions"] = item.BasePermissions;
row["inventoryEveryOnePermissions"] = item.EveryOnePermissions; row["inventoryEveryOnePermissions"] = item.EveryOnePermissions;
row["inventoryGroupPermissions"] = item.GroupPermissions;
// new fields // new fields
row["salePrice"] = item.SalePrice; row["salePrice"] = item.SalePrice;
@ -723,6 +725,7 @@ namespace OpenSim.Data.SQLite
createCol(inv, "inventoryCurrentPermissions", typeof (Int32)); createCol(inv, "inventoryCurrentPermissions", typeof (Int32));
createCol(inv, "inventoryBasePermissions", typeof (Int32)); createCol(inv, "inventoryBasePermissions", typeof (Int32));
createCol(inv, "inventoryEveryOnePermissions", typeof (Int32)); createCol(inv, "inventoryEveryOnePermissions", typeof (Int32));
createCol(inv, "inventoryGroupPermissions", typeof (Int32));
// sale info // sale info
createCol(inv, "salePrice", typeof(Int32)); createCol(inv, "salePrice", typeof(Int32));