aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/PGSQL/Resources/Presence.migrations
blob: 482beef32aa90d0f281d0b2aabce63626e315584 (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
28
29
30
31
32
33
34
35
36
37
38
:VERSION 1

BEGIN TRANSACTION;

CREATE TABLE Presence (
"UserID" varchar(255) NOT NULL, 
"RegionID" uuid NOT NULL, 
"SessionID" uuid NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000',
"SecureSessionID" uuid NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000'
);
 

COMMIT;

:VERSION 2

BEGIN TRANSACTION;

CREATE UNIQUE INDEX SessionID ON Presence("SessionID");
CREATE INDEX UserID ON Presence("UserID");

COMMIT;

:VERSION 2

BEGIN TRANSACTION;

ALTER TABLE Presence ADD "LastSeen" Timestamp;

COMMIT;

:VERSION 3         # -------------------------- 

BEGIN; 

CREATE INDEX RegionID ON Presence("RegionID");

COMMIT;