diff options
Diffstat (limited to 'OpenSim/Data/MySQL/Resources/Presence.migrations')
-rw-r--r-- | OpenSim/Data/MySQL/Resources/Presence.migrations | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Data/MySQL/Resources/Presence.migrations b/OpenSim/Data/MySQL/Resources/Presence.migrations new file mode 100644 index 0000000..91f7de5 --- /dev/null +++ b/OpenSim/Data/MySQL/Resources/Presence.migrations | |||
@@ -0,0 +1,15 @@ | |||
1 | :VERSION 1 # -------------------------- | ||
2 | |||
3 | BEGIN; | ||
4 | |||
5 | CREATE TABLE `Presence` ( | ||
6 | `UserID` VARCHAR(255) NOT NULL, | ||
7 | `RegionID` CHAR(36) NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000', | ||
8 | `SessionID` CHAR(36) NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000', | ||
9 | `SecureSessionID` CHAR(36) NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000' | ||
10 | ) ENGINE=InnoDB; | ||
11 | |||
12 | CREATE UNIQUE INDEX SessionID ON Presence(SessionID); | ||
13 | CREATE INDEX UserID ON Presence(UserID); | ||
14 | |||
15 | COMMIT; | ||