mirror of
https://github.com/opensim/opensim.git
synced 2026-06-29 18:55:37 +08:00
* Created value object for EstateRegionLink for storing the estate region relationship. * Refactored slightly NHibernateManager and NHibernateXXXXData implementations for accesing nhibernate generated ID on insert. ** Changed NHibernateManager.Save method name to Insert as it does Insert. ** Changed NHibernateManager.Save return value object as ID can be both UUID and uint currently. ** Changed NHibernateManager.Load method Id parameter to object as it can be both UUID and uint. * Created NHibernateEstateData implementation. This is the actual estate storage. * Created NHibernate mapping files for both EstateSettings and EstateRegionLink * Created MigrationSyntaxDifferences.txt files to write notes about differences in migration scripts between different databases. * Created estate storage migration scripts for all four databases. * Created estate unit test classes for all four databases. * Updated one missing field to BasicEstateTest.cs * Tested NHibernate unit tests with NUnit GUI. Asset databases fail but that is not related to this patch. * Tested build with both Visual Studio and nant. * Executed build tests with nant succesfully.
41 lines
1.3 KiB
SQL
41 lines
1.3 KiB
SQL
CREATE TABLE EstateSettings (
|
|
EstateID INT NOT NULL,
|
|
ParentEstateID INT DEFAULT NULL,
|
|
EstateOwnerID VARCHAR(36) DEFAULT NULL,
|
|
Name VARCHAR(64) DEFAULT NULL,
|
|
RedirectGridX INT DEFAULT NULL,
|
|
RedirectGridY INT DEFAULT NULL,
|
|
BillableFactor DOUBLE DEFAULT NULL,
|
|
PricePerMeter INT DEFAULT NULL,
|
|
SunPosition DOUBLE DEFAULT NULL,
|
|
|
|
UseGlobalTime BIT DEFAULT NULL,
|
|
FixedSun BIT DEFAULT NULL,
|
|
AllowVoice BIT DEFAULT NULL,
|
|
AllowDirectTeleport BIT DEFAULT NULL,
|
|
ResetHomeOnTeleport BIT DEFAULT NULL,
|
|
PublicAccess BIT DEFAULT NULL,
|
|
DenyAnonymous BIT DEFAULT NULL,
|
|
DenyIdentified BIT DEFAULT NULL,
|
|
DenyTransacted BIT DEFAULT NULL,
|
|
DenyMinors BIT DEFAULT NULL,
|
|
BlockDwell BIT DEFAULT NULL,
|
|
EstateSkipScripts BIT DEFAULT NULL,
|
|
TaxFree BIT DEFAULT NULL,
|
|
AbuseEmailToEstateOwner BIT DEFAULT NULL,
|
|
|
|
AbuseEmail VARCHAR(255) DEFAULT NULL,
|
|
|
|
PRIMARY KEY (EstateID)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Rev. 1';
|
|
|
|
CREATE TABLE EstateRegionLink (
|
|
EstateRegionLinkID VARCHAR(36) NOT NULL,
|
|
EstateID INT DEFAULT NULL,
|
|
RegionID VARCHAR(36) DEFAULT NULL,
|
|
PRIMARY KEY (EstateRegionLinkID)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Rev. 1';
|
|
|
|
CREATE INDEX EstateRegionLinkEstateIDIndex ON EstateRegionLink (EstateID);
|
|
CREATE INDEX EstateRegionLinkERegionIDIndex ON EstateRegionLink (RegionID);
|