mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
SQLite db migration update
This commit is contained in:
@@ -1246,6 +1246,7 @@ namespace OpenSim.Data.SQLite
|
||||
createCol(prims, "Restitution", typeof(Double));
|
||||
|
||||
createCol(prims, "KeyframeMotion", typeof(Byte[]));
|
||||
|
||||
// Add in contraints
|
||||
prims.PrimaryKey = new DataColumn[] { prims.Columns["UUID"] };
|
||||
|
||||
@@ -1760,7 +1761,17 @@ namespace OpenSim.Data.SQLite
|
||||
{
|
||||
prim.KeyframeMotion = null;
|
||||
}
|
||||
|
||||
|
||||
prim.PassCollisions = Convert.ToBoolean(row["PassCollisions"]);
|
||||
prim.PassTouches = Convert.ToBoolean(row["PassTouches"]);
|
||||
|
||||
SOPVehicle vehicle = null;
|
||||
if (!(row["Vehicle"] is DBNull) && row["Vehicle"].ToString() != String.Empty)
|
||||
{
|
||||
vehicle = SOPVehicle.FromXml2(row["Vehicle"].ToString());
|
||||
if (vehicle != null)
|
||||
prim.VehicleParams = vehicle;
|
||||
}
|
||||
return prim;
|
||||
}
|
||||
|
||||
@@ -1845,6 +1856,10 @@ namespace OpenSim.Data.SQLite
|
||||
newData.MediaLoop = Convert.ToBoolean(row["MediaLoop"]);
|
||||
newData.ObscureMedia = Convert.ToBoolean(row["ObscureMedia"]);
|
||||
newData.ObscureMusic = Convert.ToBoolean(row["ObscureMusic"]);
|
||||
newData.SeeAVs = Convert.ToBoolean(row["SeeAVs"]);
|
||||
newData.AnyAVSounds = Convert.ToBoolean(row["AnyAVSounds"]);
|
||||
newData.GroupAVSounds = Convert.ToBoolean(row["GroupAVSounds"]);
|
||||
|
||||
try
|
||||
{
|
||||
newData.UserLocation =
|
||||
@@ -1918,7 +1933,8 @@ namespace OpenSim.Data.SQLite
|
||||
newSettings.TerrainImageID = new UUID((String)row["map_tile_ID"]);
|
||||
newSettings.TelehubObject = new UUID((String)row["TelehubObject"]);
|
||||
newSettings.ParcelImageID = new UUID((String)row["parcel_tile_ID"]);
|
||||
|
||||
newSettings.GodBlockSearch = Convert.ToBoolean(row["block_search"]);
|
||||
newSettings.Casino = Convert.ToBoolean(row["casino"]);
|
||||
return newSettings;
|
||||
}
|
||||
|
||||
@@ -2013,7 +2029,7 @@ namespace OpenSim.Data.SQLite
|
||||
return entry;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
@@ -2138,7 +2154,6 @@ namespace OpenSim.Data.SQLite
|
||||
// click action
|
||||
row["ClickAction"] = prim.ClickAction;
|
||||
|
||||
row["SalePrice"] = prim.SalePrice;
|
||||
row["Material"] = prim.Material;
|
||||
|
||||
row["CollisionSound"] = prim.CollisionSound.ToString();
|
||||
@@ -2169,8 +2184,16 @@ namespace OpenSim.Data.SQLite
|
||||
row["KeyframeMotion"] = prim.KeyframeMotion.Serialize();
|
||||
else
|
||||
row["KeyframeMotion"] = new Byte[0];
|
||||
|
||||
|
||||
|
||||
|
||||
row["PassTouches"] = prim.PassTouches;
|
||||
row["PassCollisions"] = prim.PassCollisions;
|
||||
|
||||
if (prim.VehicleParams != null)
|
||||
row["Vehicle"] = prim.VehicleParams.ToXml2();
|
||||
else
|
||||
row["Vehicle"] = String.Empty;
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -2254,6 +2277,10 @@ namespace OpenSim.Data.SQLite
|
||||
row["MediaLoop"] = land.MediaLoop;
|
||||
row["ObscureMusic"] = land.ObscureMusic;
|
||||
row["ObscureMedia"] = land.ObscureMedia;
|
||||
row["SeeAVs"] = land.SeeAVs;
|
||||
row["AnyAVSounds"] = land.AnyAVSounds;
|
||||
row["GroupAVSounds"] = land.GroupAVSounds;
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -2312,6 +2339,8 @@ namespace OpenSim.Data.SQLite
|
||||
row["map_tile_ID"] = settings.TerrainImageID.ToString();
|
||||
row["TelehubObject"] = settings.TelehubObject.ToString();
|
||||
row["parcel_tile_ID"] = settings.ParcelImageID.ToString();
|
||||
row["block_search"] = settings.GodBlockSearch;
|
||||
row["casino"] = settings.Casino;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user