aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL/Resources/GridUserStore.migrations
blob: 440d076630005565c706e3cc62ff692fba6626f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
:VERSION 1         # -------------------------- 

BEGIN;

CREATE TABLE `GridUser` (
    `UserID` VARCHAR(255) NOT NULL,
    `HomeRegionID` CHAR(36) NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000',
    `HomePosition` CHAR(64) NOT NULL DEFAULT '<0,0,0>',
    `HomeLookAt` CHAR(64) NOT NULL DEFAULT '<0,0,0>',
    `LastRegionID` CHAR(36) NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000',
    `LastPosition` CHAR(64) NOT NULL DEFAULT '<0,0,0>',
    `LastLookAt` CHAR(64) NOT NULL DEFAULT '<0,0,0>',
    `Online` CHAR(5) NOT NULL DEFAULT 'false',
    `Login` CHAR(16) NOT NULL DEFAULT '0',
    `Logout` CHAR(16) NOT NULL DEFAULT '0',
    PRIMARY KEY  (`UserID`)
) ENGINE=InnoDB;

COMMIT;

:VERSION 2         # -------------------------- 

BEGIN;

ALTER TABLE `GridUser` ADD COLUMN TOS CHAR(36);

COMMIT;