diff options
Diffstat (limited to 'OpenSim/Data/PGSQL/Resources/Presence.migrations')
-rwxr-xr-x[-rw-r--r--] | OpenSim/Data/PGSQL/Resources/Presence.migrations | 18 |
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; | |||
19 | CREATE UNIQUE INDEX SessionID ON Presence("SessionID"); | 19 | CREATE UNIQUE INDEX SessionID ON Presence("SessionID"); |
20 | CREATE INDEX UserID ON Presence("UserID"); | 20 | CREATE INDEX UserID ON Presence("UserID"); |
21 | 21 | ||
22 | ALTER TABLE Presence ADD "LastSeen" Timestamp; | ||
23 | |||
22 | COMMIT; | 24 | COMMIT; |
23 | 25 | ||
24 | :VERSION 2 | 26 | :VERSION 3 # -------------------------- |
25 | 27 | ||
26 | BEGIN TRANSACTION; | 28 | BEGIN; |
27 | 29 | ||
28 | ALTER TABLE Presence ADD "LastSeen" Timestamp; | 30 | CREATE INDEX RegionID ON Presence("RegionID"); |
29 | 31 | ||
30 | COMMIT; | 32 | COMMIT; |
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 | |||
36 | BEGIN; | ||
37 | |||
38 | ALTER TABLE Presence | ||
39 | DROP COLUMN IF EXISTS "LastSeen", | ||
40 | ADD COLUMN "LastSeen" Timestamp; | ||
41 | |||
42 | COMMIT; \ No newline at end of file | ||