aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MSSQL/Resources/Presence.migrations
diff options
context:
space:
mode:
authorAlexRa2010-05-06 23:16:36 +0300
committerAlexRa2010-05-16 17:04:50 +0300
commitdfeb9a0b5c07a85ec8aed591206468cee83ce637 (patch)
tree412dbee487945ed78c9d2598d2310a02c411ef96 /OpenSim/Data/MSSQL/Resources/Presence.migrations
parentMigrations for SQLite converted to new format (diff)
downloadopensim-SC_OLD-dfeb9a0b5c07a85ec8aed591206468cee83ce637.zip
opensim-SC_OLD-dfeb9a0b5c07a85ec8aed591206468cee83ce637.tar.gz
opensim-SC_OLD-dfeb9a0b5c07a85ec8aed591206468cee83ce637.tar.bz2
opensim-SC_OLD-dfeb9a0b5c07a85ec8aed591206468cee83ce637.tar.xz
MS SQL migrations converted to the new format
Diffstat (limited to 'OpenSim/Data/MSSQL/Resources/Presence.migrations')
-rw-r--r--OpenSim/Data/MSSQL/Resources/Presence.migrations30
1 files changed, 30 insertions, 0 deletions
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 @@
1:VERSION 1
2
3BEGIN TRANSACTION
4
5CREATE TABLE [Presence] (
6[UserID] varchar(255) NOT NULL,
7[RegionID] uniqueidentifier NOT NULL,
8[SessionID] uniqueidentifier NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000',
9[SecureSessionID] uniqueidentifier NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000',
10[Online] char(5) NOT NULL DEFAULT 'false',
11[Login] char(16) NOT NULL DEFAULT '0',
12[Logout] char(16) NOT NULL DEFAULT '0',
13[Position] char(64) NOT NULL DEFAULT '<0,0,0>',
14[LookAt] char(64) NOT NULL DEFAULT '<0,0,0>',
15[HomeRegionID] uniqueidentifier NOT NULL,
16[HomePosition] CHAR(64) NOT NULL DEFAULT '<0,0,0>',
17[HomeLookAt] CHAR(64) NOT NULL DEFAULT '<0,0,0>',
18)
19 ON [PRIMARY]
20
21COMMIT
22
23:VERSION 2
24
25BEGIN TRANSACTION
26
27CREATE UNIQUE INDEX SessionID ON Presence(SessionID);
28CREATE INDEX UserID ON Presence(UserID);
29
30COMMIT \ No newline at end of file