Files
opensim/OpenSim/Data/NHibernate/Resources/SQLiteDialect/001_GridStore.sql
Charles Krinke c00c855cc5 Thank you kindly, Tlaukkan (Tommil) for a patch that:
Cleaned up schema creation scripts of MySQL to compliant form and created 
SQLite scripts from them. In future it would be optimal if scripts from 
different databases could be generated from MySQL scripts to ensure optimal 
consistency between schemas of different databases. Did not yet review 
column names. ID columns seem to have variety in naming which can be confusing.
2009-01-12 20:14:39 +00:00

36 lines
1.4 KiB
SQL

CREATE TABLE Regions (
RegionId VARCHAR(36) NOT NULL,
RegionHandle BIGINT UNSIGNED NOT NULL,
RegionName VARCHAR(32) DEFAULT NULL,
RegionRecvKey VARCHAR(128) DEFAULT NULL,
RegionSendKey VARCHAR(128) DEFAULT NULL,
RegionSecret VARCHAR(128) DEFAULT NULL,
RegionDataURI VARCHAR(255) DEFAULT NULL,
ServerIP VARCHAR(64) DEFAULT NULL,
ServerPort INT UNSIGNED DEFAULT NULL,
ServerURI VARCHAR(255) DEFAULT NULL,
RegionLocX INT UNSIGNED DEFAULT NULL,
RegionLocY INT UNSIGNED DEFAULT NULL,
RegionLocZ INT UNSIGNED DEFAULT NULL,
EastOverrideHandle BIGINT UNSIGNED DEFAULT NULL,
WestOverrideHandle BIGINT UNSIGNED DEFAULT NULL,
SouthOverrideHandle BIGINT UNSIGNED DEFAULT NULL,
NorthOverrideHandle BIGINT UNSIGNED DEFAULT NULL,
RegionAssetURI VARCHAR(255) DEFAULT NULL,
RegionAssetRecvKey VARCHAR(128) DEFAULT NULL,
RegionAssetSendKey VARCHAR(128) DEFAULT NULL,
RegionUserURI VARCHAR(255) DEFAULT NULL,
RegionUserRecvKey VARCHAR(128) DEFAULT NULL,
RegionUserSendKey VARCHAR(128) DEFAULT NULL,
regionMapTexture VARCHAR(36) DEFAULT NULL,
ServerHttpPort INT DEFAULT NULL,
ServerRemotingPort INT DEFAULT NULL,
OwnerID VARCHAR(36) DEFAULT NULL,
OriginID VARCHAR(36) DEFAULT NULL,
PRIMARY KEY (uuid),
);
CREATE INDEX RegionNameIndex ON Regions (RegionName);
CREATE INDEX RegionHandleIndex ON Regions (RegionHandle);
CREATE INDEX RegionHandlesIndex ON Regions (EastOverrideHandle,WestOverrideHandle,SouthOverrideHandle,NorthOverrideHandle);