mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 09:16:28 +08:00
Add database persistence for material setting
This commit is contained in:
5
OpenSim/Data/SQLite/Resources/012_RegionStore.sql
Normal file
5
OpenSim/Data/SQLite/Resources/012_RegionStore.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
BEGIN;
|
||||
|
||||
ALTER TABLE prims ADD COLUMN Material INTEGER NOT NULL default 3;
|
||||
|
||||
COMMIT;
|
||||
@@ -859,6 +859,8 @@ namespace OpenSim.Data.SQLite
|
||||
// click action
|
||||
createCol(prims, "ClickAction", typeof (Byte));
|
||||
|
||||
createCol(prims, "Material", typeof(Int32));
|
||||
|
||||
// Add in contraints
|
||||
prims.PrimaryKey = new DataColumn[] {prims.Columns["UUID"]};
|
||||
|
||||
@@ -1213,6 +1215,8 @@ namespace OpenSim.Data.SQLite
|
||||
|
||||
prim.SalePrice = Convert.ToInt32(row["SalePrice"]);
|
||||
prim.ObjectSaleType = Convert.ToByte(row["SaleType"]);
|
||||
|
||||
prim.Material = Convert.ToByte(row["Material"]);
|
||||
return prim;
|
||||
}
|
||||
|
||||
@@ -1529,6 +1533,8 @@ namespace OpenSim.Data.SQLite
|
||||
|
||||
// click action
|
||||
row["ClickAction"] = prim.ClickAction;
|
||||
|
||||
row["SalePrice"] = prim.SalePrice;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user