Thank you kindly, Tlaukkan (Tommil) for a patch that:

Fixed all NHibernate unit tests by implementing missing persistency 
methods, tables, columns and fixing bugs in the existing implementation.
Two minor changes to classes outside NHibernate module: Added Scene 
instantiation for SceneObjectGroup in OpenSim.Data.Tests.BasicRegionTest 
as this was required by the NHibernate persistency. In the process added 
also mock constructor to Scene which only populates RegionInfo in the scene 
which is used by ScenePart.RegionUUID. NHibernate module is still in 
experimental state and has not been tested at opensim region or ugaim runtime 
configuration. Adding unit tests to build is not yet advisable nor using 
NHibernate module in any production setup.
This commit is contained in:
Charles Krinke
2009-01-11 18:24:16 +00:00
parent 16561bd528
commit 40f34aeffd
19 changed files with 763 additions and 131 deletions

View File

@@ -1,26 +1,78 @@
BEGIN;
CREATE TABLE `PrimItems` (
`ItemID` char(36) NOT NULL default '',
`GroupID` char(36) default NULL,
`PrimID` char(36) default NULL,
`ParentFolderID` char(36) default NULL,
`AssetID` char(36) default NULL,
`OwnerID` char(36) default NULL,
`LastOwnerID` char(36) default NULL,
`CreatorID` char(36) default NULL,
`CreationDate` bigint(20) default NULL,
`InvType` int(11) default NULL,
`Name` varchar(255) default NULL,
`Description` varchar(255) default NULL,
`CreationDate` bigint(20) default NULL,
`NextPermissions` int(11) default NULL,
`CurrentPermissions` int(11) default NULL,
`BasePermissions` int(11) default NULL,
`EveryonePermissions` int(11) default NULL,
`GroupPermissions` int(11) default NULL,
`Flags` int(11) NOT NULL default '0',
`ItemID` char(36) NOT NULL default '',
`PrimID` char(36) default NULL,
`AssetID` char(36) default NULL,
`ParentFolderID` char(36) default NULL,
`CreatorID` char(36) default NULL,
`OwnerID` char(36) default NULL,
`GroupID` char(36) default NULL,
`LastOwnerID` char(36) default NULL,
PRIMARY KEY (`ItemID`),
KEY `primitems_primid` (`PrimID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
COMMIT;
CREATE TABLE RegionSettings (
`RegionID` char(36) default NULL,
`BlockTerraform` bit(1) default NULL,
`BlockFly` bit(1) default NULL,
`AllowDamage` bit(1) default NULL,
`RestrictPushing` bit(1) default NULL,
`AllowLandResell` bit(1) default NULL,
`AllowLandJoinDivide` bit(1) default NULL,
`BlockShowInSearch` bit(1) default NULL,
`AgentLimit` int(11) default NULL,
`ObjectBonus` double default NULL,
`Maturity` int(11) default NULL,
`DisableScripts` bit(1) default NULL,
`DisableCollisions` bit(1) default NULL,
`DisablePhysics` bit(1) default NULL,
`TerrainTexture1` char(36) default NULL,
`TerrainTexture2` char(36) default NULL,
`TerrainTexture3` char(36) default NULL,
`TerrainTexture4` char(36) default NULL,
`Elevation1NW` double default NULL,
`Elevation2NW` double default NULL,
`Elevation1NE` double default NULL,
`Elevation2NE` double default NULL,
`Elevation1SE` double default NULL,
`Elevation2SE` double default NULL,
`Elevation1SW` double default NULL,
`Elevation2SW` double default NULL,
`WaterHeight` double default NULL,
`TerrainRaiseLimit` double default NULL,
`TerrainLowerLimit` double default NULL,
`UseEstateSun` bit(1) default NULL,
`Sandbox` bit(1) default NULL,
`SunVectorX` double default NULL,
`SunVectorY` double default NULL,
`SunVectorZ` double default NULL,
`FixedSun` bit(1) default NULL,
`SunPosition` double default NULL,
`Covenant` char(36) default NULL,
PRIMARY KEY (RegionID)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
COMMIT;