From dfeb9a0b5c07a85ec8aed591206468cee83ce637 Mon Sep 17 00:00:00 2001 From: AlexRa Date: Thu, 6 May 2010 23:16:36 +0300 Subject: MS SQL migrations converted to the new format --- OpenSim/Data/MSSQL/Resources/Presence.migrations | 30 ++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 OpenSim/Data/MSSQL/Resources/Presence.migrations (limited to 'OpenSim/Data/MSSQL/Resources/Presence.migrations') diff --git a/OpenSim/Data/MSSQL/Resources/Presence.migrations b/OpenSim/Data/MSSQL/Resources/Presence.migrations new file mode 100644 index 0000000..35f78e1 --- /dev/null +++ b/OpenSim/Data/MSSQL/Resources/Presence.migrations @@ -0,0 +1,30 @@ +:VERSION 1 + +BEGIN TRANSACTION + +CREATE TABLE [Presence] ( +[UserID] varchar(255) NOT NULL, +[RegionID] uniqueidentifier NOT NULL, +[SessionID] uniqueidentifier NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000', +[SecureSessionID] uniqueidentifier NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000', +[Online] char(5) NOT NULL DEFAULT 'false', +[Login] char(16) NOT NULL DEFAULT '0', +[Logout] char(16) NOT NULL DEFAULT '0', +[Position] char(64) NOT NULL DEFAULT '<0,0,0>', +[LookAt] char(64) NOT NULL DEFAULT '<0,0,0>', +[HomeRegionID] uniqueidentifier NOT NULL, +[HomePosition] CHAR(64) NOT NULL DEFAULT '<0,0,0>', +[HomeLookAt] CHAR(64) NOT NULL DEFAULT '<0,0,0>', +) + ON [PRIMARY] + +COMMIT + +:VERSION 2 + +BEGIN TRANSACTION + +CREATE UNIQUE INDEX SessionID ON Presence(SessionID); +CREATE INDEX UserID ON Presence(UserID); + +COMMIT \ No newline at end of file -- cgit v1.1