diff options
author | Melanie | 2013-02-05 21:30:12 +0000 |
---|---|---|
committer | Melanie | 2013-02-05 21:30:12 +0000 |
commit | d3892bbd0674e4f6912ce89e54712ea405dbbfb8 (patch) | |
tree | 70ea1e0fea0e7eff5664bed1103e63d08c7b1c47 /OpenSim/Data/MySQL | |
parent | Merge branch 'master' into careminster (diff) | |
parent | Merge branch 'master' of melanie@opensimulator.org:/var/git/opensim (diff) | |
download | opensim-SC-d3892bbd0674e4f6912ce89e54712ea405dbbfb8.zip opensim-SC-d3892bbd0674e4f6912ce89e54712ea405dbbfb8.tar.gz opensim-SC-d3892bbd0674e4f6912ce89e54712ea405dbbfb8.tar.bz2 opensim-SC-d3892bbd0674e4f6912ce89e54712ea405dbbfb8.tar.xz |
Merge branch 'master' into careminster
Conflicts:
OpenSim/Data/MySQL/MySQLSimulationData.cs
OpenSim/Framework/Servers/VersionInfo.cs
OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs
OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLSimulationData.cs | 17 | ||||
-rw-r--r-- | OpenSim/Data/MySQL/Properties/AssemblyInfo.cs | 2 | ||||
-rw-r--r-- | OpenSim/Data/MySQL/Resources/RegionStore.migrations | 8 |
3 files changed, 23 insertions, 4 deletions
diff --git a/OpenSim/Data/MySQL/MySQLSimulationData.cs b/OpenSim/Data/MySQL/MySQLSimulationData.cs index 01b9299..3fab27a 100644 --- a/OpenSim/Data/MySQL/MySQLSimulationData.cs +++ b/OpenSim/Data/MySQL/MySQLSimulationData.cs | |||
@@ -176,7 +176,7 @@ namespace OpenSim.Data.MySQL | |||
176 | "PassCollisions, " + | 176 | "PassCollisions, " + |
177 | "LinkNumber, MediaURL, KeyframeMotion, " + | 177 | "LinkNumber, MediaURL, KeyframeMotion, " + |
178 | "PhysicsShapeType, Density, GravityModifier, " + | 178 | "PhysicsShapeType, Density, GravityModifier, " + |
179 | "Friction, Restitution, Vehicle " + | 179 | "Friction, Restitution, Vehicle, DynAttrs " + |
180 | ") values (" + "?UUID, " + | 180 | ") values (" + "?UUID, " + |
181 | "?CreationDate, ?Name, ?Text, " + | 181 | "?CreationDate, ?Name, ?Text, " + |
182 | "?Description, ?SitName, ?TouchName, " + | 182 | "?Description, ?SitName, ?TouchName, " + |
@@ -211,7 +211,7 @@ namespace OpenSim.Data.MySQL | |||
211 | "?CollisionSoundVolume, ?PassTouches, ?PassCollisions, " + | 211 | "?CollisionSoundVolume, ?PassTouches, ?PassCollisions, " + |
212 | "?LinkNumber, ?MediaURL, ?KeyframeMotion, " + | 212 | "?LinkNumber, ?MediaURL, ?KeyframeMotion, " + |
213 | "?PhysicsShapeType, ?Density, ?GravityModifier, " + | 213 | "?PhysicsShapeType, ?Density, ?GravityModifier, " + |
214 | "?Friction, ?Restitution, ?Vehicle)"; | 214 | "?Friction, ?Restitution, ?Vehicle, ?DynAttrs)"; |
215 | 215 | ||
216 | FillPrimCommand(cmd, prim, obj.UUID, regionUUID); | 216 | FillPrimCommand(cmd, prim, obj.UUID, regionUUID); |
217 | 217 | ||
@@ -228,7 +228,8 @@ namespace OpenSim.Data.MySQL | |||
228 | "PathTaperX, PathTaperY, PathTwist, " + | 228 | "PathTaperX, PathTaperY, PathTwist, " + |
229 | "PathTwistBegin, ProfileBegin, ProfileEnd, " + | 229 | "PathTwistBegin, ProfileBegin, ProfileEnd, " + |
230 | "ProfileCurve, ProfileHollow, Texture, " + | 230 | "ProfileCurve, ProfileHollow, Texture, " + |
231 | "ExtraParams, State, Media) values (?UUID, " + | 231 | "ExtraParams, State, Media) " + |
232 | "values (?UUID, " + | ||
232 | "?Shape, ?ScaleX, ?ScaleY, ?ScaleZ, " + | 233 | "?Shape, ?ScaleX, ?ScaleY, ?ScaleZ, " + |
233 | "?PCode, ?PathBegin, ?PathEnd, " + | 234 | "?PCode, ?PathBegin, ?PathEnd, " + |
234 | "?PathScaleX, ?PathScaleY, " + | 235 | "?PathScaleX, ?PathScaleY, " + |
@@ -1321,6 +1322,11 @@ namespace OpenSim.Data.MySQL | |||
1321 | 1322 | ||
1322 | if (!(row["MediaURL"] is System.DBNull)) | 1323 | if (!(row["MediaURL"] is System.DBNull)) |
1323 | prim.MediaUrl = (string)row["MediaURL"]; | 1324 | prim.MediaUrl = (string)row["MediaURL"]; |
1325 | |||
1326 | if (!(row["DynAttrs"] is System.DBNull)) | ||
1327 | prim.DynAttrs = DAMap.FromXml((string)row["DynAttrs"]); | ||
1328 | else | ||
1329 | prim.DynAttrs = new DAMap(); | ||
1324 | 1330 | ||
1325 | if (!(row["KeyframeMotion"] is DBNull)) | 1331 | if (!(row["KeyframeMotion"] is DBNull)) |
1326 | { | 1332 | { |
@@ -1731,6 +1737,11 @@ namespace OpenSim.Data.MySQL | |||
1731 | cmd.Parameters.AddWithValue("Vehicle", prim.VehicleParams.ToXml2()); | 1737 | cmd.Parameters.AddWithValue("Vehicle", prim.VehicleParams.ToXml2()); |
1732 | else | 1738 | else |
1733 | cmd.Parameters.AddWithValue("Vehicle", String.Empty); | 1739 | cmd.Parameters.AddWithValue("Vehicle", String.Empty); |
1740 | |||
1741 | if (prim.DynAttrs.Count > 0) | ||
1742 | cmd.Parameters.AddWithValue("DynAttrs", prim.DynAttrs.ToXml()); | ||
1743 | else | ||
1744 | cmd.Parameters.AddWithValue("DynAttrs", null); | ||
1734 | } | 1745 | } |
1735 | 1746 | ||
1736 | /// <summary> | 1747 | /// <summary> |
diff --git a/OpenSim/Data/MySQL/Properties/AssemblyInfo.cs b/OpenSim/Data/MySQL/Properties/AssemblyInfo.cs index ab3fe36..7bfa28d 100644 --- a/OpenSim/Data/MySQL/Properties/AssemblyInfo.cs +++ b/OpenSim/Data/MySQL/Properties/AssemblyInfo.cs | |||
@@ -61,5 +61,5 @@ using System.Runtime.InteropServices; | |||
61 | // You can specify all the values or you can default the Revision and Build Numbers | 61 | // You can specify all the values or you can default the Revision and Build Numbers |
62 | // by using the '*' as shown below: | 62 | // by using the '*' as shown below: |
63 | 63 | ||
64 | [assembly : AssemblyVersion("0.7.5.*")] | 64 | [assembly : AssemblyVersion("0.7.6.*")] |
65 | [assembly : AssemblyFileVersion("0.6.5.0")] | 65 | [assembly : AssemblyFileVersion("0.6.5.0")] |
diff --git a/OpenSim/Data/MySQL/Resources/RegionStore.migrations b/OpenSim/Data/MySQL/Resources/RegionStore.migrations index c4b0832..0be5587 100644 --- a/OpenSim/Data/MySQL/Resources/RegionStore.migrations +++ b/OpenSim/Data/MySQL/Resources/RegionStore.migrations | |||
@@ -902,3 +902,11 @@ BEGIN; | |||
902 | CREATE TABLE `regionextra` (`RegionID` char(36) not null, `Name` varchar(32) not null, `value` text, primary key(`RegionID`, `Name`)); | 902 | CREATE TABLE `regionextra` (`RegionID` char(36) not null, `Name` varchar(32) not null, `value` text, primary key(`RegionID`, `Name`)); |
903 | 903 | ||
904 | COMMIT; | 904 | COMMIT; |
905 | |||
906 | :VERSION 46 #---------------- Dynamic attributes | ||
907 | |||
908 | BEGIN; | ||
909 | |||
910 | ALTER TABLE prims ADD COLUMN DynAttrs TEXT; | ||
911 | |||
912 | COMMIT; | ||