* Refactored the land table to be versionable in mySQL.

* Added AuthbuyerID so that if someone sets a land for sale to someone and then restarts the simulator, when the simulator comes back up, the setting persists.
This commit is contained in:
Teravus Ovares
2008-04-30 20:08:15 +00:00
parent 3508298ddf
commit b3f44fbb94
3 changed files with 170 additions and 11 deletions

View File

@@ -0,0 +1,39 @@
CREATE TABLE `land`
(
`UUID` varchar (255) NOT NULL,
`RegionUUID` varchar (255) DEFAULT NULL ,
`LocalLandID` int (11) DEFAULT NULL ,
`Bitmap` longblob,
`Name` varchar (255) DEFAULT NULL ,
`Description` varchar (255) DEFAULT NULL ,
`OwnerUUID` varchar (255) DEFAULT NULL ,
`IsGroupOwned` int (11) DEFAULT NULL ,
`Area` int (11) DEFAULT NULL ,
`AuctionID` int (11) DEFAULT NULL ,
`Category` int (11) DEFAULT NULL ,
`ClaimDate` int (11) DEFAULT NULL ,
`ClaimPrice` int (11) DEFAULT NULL ,
`GroupUUID` varchar (255) DEFAULT NULL ,
`SalePrice` int (11) DEFAULT NULL ,
`LandStatus` int (11) DEFAULT NULL ,
`LandFlags` int (11) DEFAULT NULL ,
`LandingType` int (11) DEFAULT NULL ,
`MediaAutoScale` int (11) DEFAULT NULL ,
`MediaTextureUUID` varchar (255) DEFAULT NULL ,
`MediaURL` varchar (255) DEFAULT NULL ,
`MusicURL` varchar (255) DEFAULT NULL ,
`PassHours` float DEFAULT NULL ,
`PassPrice` int (11) DEFAULT NULL ,
`SnapshotUUID` varchar (255) DEFAULT NULL ,
`UserLocationX` float DEFAULT NULL ,
`UserLocationY` float DEFAULT NULL ,
`UserLocationZ` float DEFAULT NULL ,
`UserLookAtX` float DEFAULT NULL ,
`UserLookAtY` float DEFAULT NULL ,
`UserLookAtZ` float DEFAULT NULL ,
`AuthbuyerID` varchar(36) default '00000000-0000-0000-0000-000000000000' not null,
PRIMARY KEY (`UUID`)
)
ENGINE=INNODB
DEFAULT CHARSET=utf8 COMMENT='Rev. 2';