aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/PGSQL/Resources/Presence.migrations
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Data/PGSQL/Resources/Presence.migrations')
-rwxr-xr-x[-rw-r--r--]OpenSim/Data/PGSQL/Resources/Presence.migrations18
1 files changed, 15 insertions, 3 deletions
diff --git a/OpenSim/Data/PGSQL/Resources/Presence.migrations b/OpenSim/Data/PGSQL/Resources/Presence.migrations
index 684faa2..5184034 100644..100755
--- a/OpenSim/Data/PGSQL/Resources/Presence.migrations
+++ b/OpenSim/Data/PGSQL/Resources/Presence.migrations
@@ -19,12 +19,24 @@ BEGIN TRANSACTION;
19CREATE UNIQUE INDEX SessionID ON Presence("SessionID"); 19CREATE UNIQUE INDEX SessionID ON Presence("SessionID");
20CREATE INDEX UserID ON Presence("UserID"); 20CREATE INDEX UserID ON Presence("UserID");
21 21
22ALTER TABLE Presence ADD "LastSeen" Timestamp;
23
22COMMIT; 24COMMIT;
23 25
24:VERSION 2 26:VERSION 3 # --------------------------
25 27
26BEGIN TRANSACTION; 28BEGIN;
27 29
28ALTER TABLE Presence ADD "LastSeen" Timestamp; 30CREATE INDEX RegionID ON Presence("RegionID");
29 31
30COMMIT; 32COMMIT;
33
34:VERSION 4 # Making sure LastSeen is actually defined in the table as it most likely erred in the double version 2 migration above
35
36BEGIN;
37
38ALTER TABLE Presence
39DROP COLUMN IF EXISTS "LastSeen",
40ADD COLUMN "LastSeen" Timestamp;
41
42COMMIT; \ No newline at end of file