diff options
Diffstat (limited to 'OpenSim/Data/SQLite')
-rw-r--r-- | OpenSim/Data/SQLite/Resources/RegionStore.migrations | 22 | ||||
-rw-r--r-- | OpenSim/Data/SQLite/Resources/UserAccount.migrations | 8 | ||||
-rw-r--r-- | OpenSim/Data/SQLite/Resources/UserProfiles.migrations | 2 | ||||
-rw-r--r-- | OpenSim/Data/SQLite/SQLiteAssetData.cs | 4 | ||||
-rw-r--r-- | OpenSim/Data/SQLite/SQLiteSimulationData.cs | 46 | ||||
-rw-r--r-- | OpenSim/Data/SQLite/SQLiteUserAccountData.cs | 5 | ||||
-rw-r--r-- | OpenSim/Data/SQLite/SQLiteUserProfilesData.cs | 1 |
7 files changed, 81 insertions, 7 deletions
diff --git a/OpenSim/Data/SQLite/Resources/RegionStore.migrations b/OpenSim/Data/SQLite/Resources/RegionStore.migrations index 901068f..f66be34 100644 --- a/OpenSim/Data/SQLite/Resources/RegionStore.migrations +++ b/OpenSim/Data/SQLite/Resources/RegionStore.migrations | |||
@@ -612,3 +612,25 @@ ALTER TABLE primshapes ADD COLUMN LastAttachPoint int not null default '0'; | |||
612 | 612 | ||
613 | COMMIT; | 613 | COMMIT; |
614 | 614 | ||
615 | :VERSION 31 #---- avination fields plus a few others | ||
616 | |||
617 | BEGIN; | ||
618 | |||
619 | ALTER TABLE `prims` ADD COLUMN `PassTouches` BOOLEAN NOT NULL DEFAULT FALSE; | ||
620 | ALTER TABLE `prims` ADD COLUMN `PassCollisions`BOOLEAN NOT NULL DEFAULT FALSE; | ||
621 | ALTER TABLE `prims` ADD COLUMN `Vehicle` TEXT default NULL; | ||
622 | ALTER TABLE `regionsettings` ADD COLUMN `block_search` BOOLEAN NOT NULL DEFAULT FALSE;; | ||
623 | ALTER TABLE `regionsettings` ADD COLUMN `casino` BOOLEAN NOT NULL DEFAULT FALSE;; | ||
624 | ALTER TABLE `land` ADD COLUMN `SeeAVs` BOOLEAN NOT NULL DEFAULT TRUE; | ||
625 | ALTER TABLE `land` ADD COLUMN `AnyAVSounds` BOOLEAN NOT NULL DEFAULT TRUE; | ||
626 | ALTER TABLE `land` ADD COLUMN `GroupAVSounds` BOOLEAN NOT NULL DEFAULT TRUE; | ||
627 | |||
628 | COMMIT; | ||
629 | |||
630 | :VERSION 32 #---- Rotation axis locks | ||
631 | |||
632 | BEGIN; | ||
633 | |||
634 | ALTER TABLE prims ADD COLUMN `RotationAxisLocks` tinyint(4) NOT NULL default '0'; | ||
635 | |||
636 | COMMIT; | ||
diff --git a/OpenSim/Data/SQLite/Resources/UserAccount.migrations b/OpenSim/Data/SQLite/Resources/UserAccount.migrations index 854fe69..f37a222 100644 --- a/OpenSim/Data/SQLite/Resources/UserAccount.migrations +++ b/OpenSim/Data/SQLite/Resources/UserAccount.migrations | |||
@@ -25,3 +25,11 @@ BEGIN TRANSACTION; | |||
25 | INSERT INTO UserAccounts (PrincipalID, ScopeID, FirstName, LastName, Email, ServiceURLs, Created) SELECT `UUID` AS PrincipalID, '00000000-0000-0000-0000-000000000000' AS ScopeID, username AS FirstName, surname AS LastName, '' as Email, '' AS ServiceURLs, created as Created FROM users; | 25 | INSERT INTO UserAccounts (PrincipalID, ScopeID, FirstName, LastName, Email, ServiceURLs, Created) SELECT `UUID` AS PrincipalID, '00000000-0000-0000-0000-000000000000' AS ScopeID, username AS FirstName, surname AS LastName, '' as Email, '' AS ServiceURLs, created as Created FROM users; |
26 | 26 | ||
27 | COMMIT; | 27 | COMMIT; |
28 | |||
29 | :VERSION 3 # ------------------------- | ||
30 | |||
31 | BEGIN; | ||
32 | |||
33 | ALTER TABLE `UserAccounts` ADD `active` BOOLEAN NOT NULL DEFAULT TRUE; | ||
34 | |||
35 | COMMIT; \ No newline at end of file | ||
diff --git a/OpenSim/Data/SQLite/Resources/UserProfiles.migrations b/OpenSim/Data/SQLite/Resources/UserProfiles.migrations index 86434e8..207dde0 100644 --- a/OpenSim/Data/SQLite/Resources/UserProfiles.migrations +++ b/OpenSim/Data/SQLite/Resources/UserProfiles.migrations | |||
@@ -99,4 +99,4 @@ CREATE TABLE IF NOT EXISTS usersettings ( | |||
99 | email varchar(254) NOT NULL, | 99 | email varchar(254) NOT NULL, |
100 | PRIMARY KEY (useruuid) | 100 | PRIMARY KEY (useruuid) |
101 | ) | 101 | ) |
102 | commit; \ No newline at end of file | 102 | commit; |
diff --git a/OpenSim/Data/SQLite/SQLiteAssetData.cs b/OpenSim/Data/SQLite/SQLiteAssetData.cs index f0dda64..9c2bd2e 100644 --- a/OpenSim/Data/SQLite/SQLiteAssetData.cs +++ b/OpenSim/Data/SQLite/SQLiteAssetData.cs | |||
@@ -131,7 +131,7 @@ namespace OpenSim.Data.SQLite | |||
131 | /// Create an asset | 131 | /// Create an asset |
132 | /// </summary> | 132 | /// </summary> |
133 | /// <param name="asset">Asset Base</param> | 133 | /// <param name="asset">Asset Base</param> |
134 | override public void StoreAsset(AssetBase asset) | 134 | override public bool StoreAsset(AssetBase asset) |
135 | { | 135 | { |
136 | string assetName = asset.Name; | 136 | string assetName = asset.Name; |
137 | if (asset.Name.Length > AssetBase.MAX_ASSET_NAME) | 137 | if (asset.Name.Length > AssetBase.MAX_ASSET_NAME) |
@@ -171,6 +171,7 @@ namespace OpenSim.Data.SQLite | |||
171 | cmd.Parameters.Add(new SqliteParameter(":Data", asset.Data)); | 171 | cmd.Parameters.Add(new SqliteParameter(":Data", asset.Data)); |
172 | 172 | ||
173 | cmd.ExecuteNonQuery(); | 173 | cmd.ExecuteNonQuery(); |
174 | return true; | ||
174 | } | 175 | } |
175 | } | 176 | } |
176 | } | 177 | } |
@@ -191,6 +192,7 @@ namespace OpenSim.Data.SQLite | |||
191 | cmd.Parameters.Add(new SqliteParameter(":Data", asset.Data)); | 192 | cmd.Parameters.Add(new SqliteParameter(":Data", asset.Data)); |
192 | 193 | ||
193 | cmd.ExecuteNonQuery(); | 194 | cmd.ExecuteNonQuery(); |
195 | return true; | ||
194 | } | 196 | } |
195 | } | 197 | } |
196 | } | 198 | } |
diff --git a/OpenSim/Data/SQLite/SQLiteSimulationData.cs b/OpenSim/Data/SQLite/SQLiteSimulationData.cs index 6ed3d40..d7b3bbe 100644 --- a/OpenSim/Data/SQLite/SQLiteSimulationData.cs +++ b/OpenSim/Data/SQLite/SQLiteSimulationData.cs | |||
@@ -1246,6 +1246,7 @@ namespace OpenSim.Data.SQLite | |||
1246 | createCol(prims, "Restitution", typeof(Double)); | 1246 | createCol(prims, "Restitution", typeof(Double)); |
1247 | 1247 | ||
1248 | createCol(prims, "KeyframeMotion", typeof(Byte[])); | 1248 | createCol(prims, "KeyframeMotion", typeof(Byte[])); |
1249 | |||
1249 | // Add in contraints | 1250 | // Add in contraints |
1250 | prims.PrimaryKey = new DataColumn[] { prims.Columns["UUID"] }; | 1251 | prims.PrimaryKey = new DataColumn[] { prims.Columns["UUID"] }; |
1251 | 1252 | ||
@@ -1760,7 +1761,18 @@ namespace OpenSim.Data.SQLite | |||
1760 | { | 1761 | { |
1761 | prim.KeyframeMotion = null; | 1762 | prim.KeyframeMotion = null; |
1762 | } | 1763 | } |
1763 | 1764 | ||
1765 | prim.PassCollisions = Convert.ToBoolean(row["PassCollisions"]); | ||
1766 | prim.PassTouches = Convert.ToBoolean(row["PassTouches"]); | ||
1767 | prim.RotationAxisLocks = Convert.ToByte(row["RotationAxisLocks"]); | ||
1768 | |||
1769 | SOPVehicle vehicle = null; | ||
1770 | if (!(row["Vehicle"] is DBNull) && row["Vehicle"].ToString() != String.Empty) | ||
1771 | { | ||
1772 | vehicle = SOPVehicle.FromXml2(row["Vehicle"].ToString()); | ||
1773 | if (vehicle != null) | ||
1774 | prim.VehicleParams = vehicle; | ||
1775 | } | ||
1764 | return prim; | 1776 | return prim; |
1765 | } | 1777 | } |
1766 | 1778 | ||
@@ -1845,6 +1857,10 @@ namespace OpenSim.Data.SQLite | |||
1845 | newData.MediaLoop = Convert.ToBoolean(row["MediaLoop"]); | 1857 | newData.MediaLoop = Convert.ToBoolean(row["MediaLoop"]); |
1846 | newData.ObscureMedia = Convert.ToBoolean(row["ObscureMedia"]); | 1858 | newData.ObscureMedia = Convert.ToBoolean(row["ObscureMedia"]); |
1847 | newData.ObscureMusic = Convert.ToBoolean(row["ObscureMusic"]); | 1859 | newData.ObscureMusic = Convert.ToBoolean(row["ObscureMusic"]); |
1860 | newData.SeeAVs = Convert.ToBoolean(row["SeeAVs"]); | ||
1861 | newData.AnyAVSounds = Convert.ToBoolean(row["AnyAVSounds"]); | ||
1862 | newData.GroupAVSounds = Convert.ToBoolean(row["GroupAVSounds"]); | ||
1863 | |||
1848 | try | 1864 | try |
1849 | { | 1865 | { |
1850 | newData.UserLocation = | 1866 | newData.UserLocation = |
@@ -1918,7 +1934,8 @@ namespace OpenSim.Data.SQLite | |||
1918 | newSettings.TerrainImageID = new UUID((String)row["map_tile_ID"]); | 1934 | newSettings.TerrainImageID = new UUID((String)row["map_tile_ID"]); |
1919 | newSettings.TelehubObject = new UUID((String)row["TelehubObject"]); | 1935 | newSettings.TelehubObject = new UUID((String)row["TelehubObject"]); |
1920 | newSettings.ParcelImageID = new UUID((String)row["parcel_tile_ID"]); | 1936 | newSettings.ParcelImageID = new UUID((String)row["parcel_tile_ID"]); |
1921 | 1937 | newSettings.GodBlockSearch = Convert.ToBoolean(row["block_search"]); | |
1938 | newSettings.Casino = Convert.ToBoolean(row["casino"]); | ||
1922 | return newSettings; | 1939 | return newSettings; |
1923 | } | 1940 | } |
1924 | 1941 | ||
@@ -2013,6 +2030,7 @@ namespace OpenSim.Data.SQLite | |||
2013 | return entry; | 2030 | return entry; |
2014 | } | 2031 | } |
2015 | 2032 | ||
2033 | |||
2016 | /// <summary> | 2034 | /// <summary> |
2017 | /// | 2035 | /// |
2018 | /// </summary> | 2036 | /// </summary> |
@@ -2137,7 +2155,6 @@ namespace OpenSim.Data.SQLite | |||
2137 | // click action | 2155 | // click action |
2138 | row["ClickAction"] = prim.ClickAction; | 2156 | row["ClickAction"] = prim.ClickAction; |
2139 | 2157 | ||
2140 | row["SalePrice"] = prim.SalePrice; | ||
2141 | row["Material"] = prim.Material; | 2158 | row["Material"] = prim.Material; |
2142 | 2159 | ||
2143 | row["CollisionSound"] = prim.CollisionSound.ToString(); | 2160 | row["CollisionSound"] = prim.CollisionSound.ToString(); |
@@ -2168,8 +2185,16 @@ namespace OpenSim.Data.SQLite | |||
2168 | row["KeyframeMotion"] = prim.KeyframeMotion.Serialize(); | 2185 | row["KeyframeMotion"] = prim.KeyframeMotion.Serialize(); |
2169 | else | 2186 | else |
2170 | row["KeyframeMotion"] = new Byte[0]; | 2187 | row["KeyframeMotion"] = new Byte[0]; |
2171 | 2188 | ||
2172 | 2189 | row["PassTouches"] = prim.PassTouches; | |
2190 | row["PassCollisions"] = prim.PassCollisions; | ||
2191 | row["RotationAxisLocks"] = prim.RotationAxisLocks; | ||
2192 | |||
2193 | if (prim.VehicleParams != null) | ||
2194 | row["Vehicle"] = prim.VehicleParams.ToXml2(); | ||
2195 | else | ||
2196 | row["Vehicle"] = String.Empty; | ||
2197 | |||
2173 | } | 2198 | } |
2174 | 2199 | ||
2175 | /// <summary> | 2200 | /// <summary> |
@@ -2253,6 +2278,10 @@ namespace OpenSim.Data.SQLite | |||
2253 | row["MediaLoop"] = land.MediaLoop; | 2278 | row["MediaLoop"] = land.MediaLoop; |
2254 | row["ObscureMusic"] = land.ObscureMusic; | 2279 | row["ObscureMusic"] = land.ObscureMusic; |
2255 | row["ObscureMedia"] = land.ObscureMedia; | 2280 | row["ObscureMedia"] = land.ObscureMedia; |
2281 | row["SeeAVs"] = land.SeeAVs; | ||
2282 | row["AnyAVSounds"] = land.AnyAVSounds; | ||
2283 | row["GroupAVSounds"] = land.GroupAVSounds; | ||
2284 | |||
2256 | } | 2285 | } |
2257 | 2286 | ||
2258 | /// <summary> | 2287 | /// <summary> |
@@ -2311,6 +2340,8 @@ namespace OpenSim.Data.SQLite | |||
2311 | row["map_tile_ID"] = settings.TerrainImageID.ToString(); | 2340 | row["map_tile_ID"] = settings.TerrainImageID.ToString(); |
2312 | row["TelehubObject"] = settings.TelehubObject.ToString(); | 2341 | row["TelehubObject"] = settings.TelehubObject.ToString(); |
2313 | row["parcel_tile_ID"] = settings.ParcelImageID.ToString(); | 2342 | row["parcel_tile_ID"] = settings.ParcelImageID.ToString(); |
2343 | row["block_search"] = settings.GodBlockSearch; | ||
2344 | row["casino"] = settings.Casino; | ||
2314 | } | 2345 | } |
2315 | 2346 | ||
2316 | /// <summary> | 2347 | /// <summary> |
@@ -2944,6 +2975,11 @@ namespace OpenSim.Data.SQLite | |||
2944 | } | 2975 | } |
2945 | } | 2976 | } |
2946 | 2977 | ||
2978 | public UUID[] GetObjectIDs(UUID regionID) | ||
2979 | { | ||
2980 | return new UUID[0]; | ||
2981 | } | ||
2982 | |||
2947 | public void SaveExtra(UUID regionID, string name, string value) | 2983 | public void SaveExtra(UUID regionID, string name, string value) |
2948 | { | 2984 | { |
2949 | } | 2985 | } |
diff --git a/OpenSim/Data/SQLite/SQLiteUserAccountData.cs b/OpenSim/Data/SQLite/SQLiteUserAccountData.cs index f98d376..91d62ce 100644 --- a/OpenSim/Data/SQLite/SQLiteUserAccountData.cs +++ b/OpenSim/Data/SQLite/SQLiteUserAccountData.cs | |||
@@ -82,5 +82,10 @@ namespace OpenSim.Data.SQLite | |||
82 | return DoQuery(cmd); | 82 | return DoQuery(cmd); |
83 | } | 83 | } |
84 | } | 84 | } |
85 | |||
86 | public UserAccountData[] GetUsersWhere(UUID scopeID, string where) | ||
87 | { | ||
88 | return null; | ||
89 | } | ||
85 | } | 90 | } |
86 | } | 91 | } |
diff --git a/OpenSim/Data/SQLite/SQLiteUserProfilesData.cs b/OpenSim/Data/SQLite/SQLiteUserProfilesData.cs index cd3e8b6..2dfdba3 100644 --- a/OpenSim/Data/SQLite/SQLiteUserProfilesData.cs +++ b/OpenSim/Data/SQLite/SQLiteUserProfilesData.cs | |||
@@ -741,6 +741,7 @@ namespace OpenSim.Data.SQLite | |||
741 | return true; | 741 | return true; |
742 | } | 742 | } |
743 | 743 | ||
744 | |||
744 | public bool UpdateUserPreferences(ref UserPreferences pref, ref string result) | 745 | public bool UpdateUserPreferences(ref UserPreferences pref, ref string result) |
745 | { | 746 | { |
746 | string query = string.Empty; | 747 | string query = string.Empty; |