diff --git a/OpenSim/Framework/Data.SQLite/Resources/001_RegionStore.sql b/OpenSim/Framework/Data.SQLite/Resources/001_RegionStore.sql index 45a36facc6..15f3d9fa2a 100644 --- a/OpenSim/Framework/Data.SQLite/Resources/001_RegionStore.sql +++ b/OpenSim/Framework/Data.SQLite/Resources/001_RegionStore.sql @@ -72,6 +72,7 @@ CREATE TABLE primshapes(UUID varchar(255) primary key, ProfileEnd integer, ProfileCurve integer, ProfileHollow integer, + State integer, Texture blob, ExtraParams blob); diff --git a/OpenSim/Framework/Data.SQLite/SQLiteRegionData.cs b/OpenSim/Framework/Data.SQLite/SQLiteRegionData.cs index ce9a3ef59c..d41dd557ab 100644 --- a/OpenSim/Framework/Data.SQLite/SQLiteRegionData.cs +++ b/OpenSim/Framework/Data.SQLite/SQLiteRegionData.cs @@ -685,6 +685,7 @@ namespace OpenSim.Framework.Data.SQLite createCol(shapes, "ProfileEnd", typeof (Int32)); createCol(shapes, "ProfileCurve", typeof (Int32)); createCol(shapes, "ProfileHollow", typeof (Int32)); + createCol(shapes, "State", typeof(Int32)); // text TODO: this isn't right, but I'm not sure the right // way to specify this as a blob atm createCol(shapes, "Texture", typeof (Byte[])); @@ -1170,6 +1171,7 @@ namespace OpenSim.Framework.Data.SQLite s.ProfileEnd = Convert.ToUInt16(row["ProfileEnd"]); s.ProfileCurve = Convert.ToByte(row["ProfileCurve"]); s.ProfileHollow = Convert.ToUInt16(row["ProfileHollow"]); + s.State = Convert.ToByte(row["State"]); // text TODO: this isn't right] = but I'm not sure the right // way to specify this as a blob atm @@ -1227,6 +1229,7 @@ namespace OpenSim.Framework.Data.SQLite row["ProfileEnd"] = s.ProfileEnd; row["ProfileCurve"] = s.ProfileCurve; row["ProfileHollow"] = s.ProfileHollow; + row["State"] = s.State; row["Texture"] = s.TextureEntry; row["ExtraParams"] = s.ExtraParams;