diff --git a/OpenSim/Data/NHibernate/Resources/MySQLDialect/001_RegionStore.sql b/OpenSim/Data/NHibernate/Resources/MySQLDialect/001_RegionStore.sql index ede281c731..1811a44c82 100644 --- a/OpenSim/Data/NHibernate/Resources/MySQLDialect/001_RegionStore.sql +++ b/OpenSim/Data/NHibernate/Resources/MySQLDialect/001_RegionStore.sql @@ -45,12 +45,7 @@ CREATE TABLE `Prims` ( `OwnerID` char(36) default NULL, `GroupID` char(36) default NULL, `LastOwnerID` char(36) default NULL, - PRIMARY KEY (`UUID`), - KEY `prims_regionuuid` (`RegionID`), - KEY 'prims_parentuuid' ('ParentUUID') -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - -CREATE TABLE `PrimShapes` ( + -- this is the shape `Shape` int(11) default NULL, `ScaleX` float default NULL, `ScaleY` float default NULL, @@ -77,6 +72,8 @@ CREATE TABLE `PrimShapes` ( `State` int(11) default NULL, `Texture` longblob, `ExtraParams` longblob, - `UUID` char(36) NOT NULL default '', - PRIMARY KEY (`UUID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; + PRIMARY KEY (`UUID`), + KEY `prims_regionuuid` (`RegionID`), + KEY 'prims_parentuuid' ('ParentUUID') +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + diff --git a/OpenSim/Data/NHibernate/Resources/RegionStore.hbm.xml b/OpenSim/Data/NHibernate/Resources/RegionStore.hbm.xml index 0004444126..4fe01e1780 100644 --- a/OpenSim/Data/NHibernate/Resources/RegionStore.hbm.xml +++ b/OpenSim/Data/NHibernate/Resources/RegionStore.hbm.xml @@ -1,6 +1,6 @@ - + @@ -75,9 +75,14 @@ - - + + + + + + + \ No newline at end of file diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index 61300b5b01..b694f19ac8 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs @@ -929,11 +929,13 @@ namespace OpenSim.Region.Environment.Scenes public LLUUID RegionID { get { return ParentGroup.Scene.RegionInfo.RegionID; } + set {} // read only } [XmlIgnore] public LLUUID ParentUUID { get { return ParentGroup.UUID; } + set {} // read only } #endregion Public Properties with only Get