PGSL Presence migration to correct a double version 2 migration that existed
The migration file had a version 2 migration defined twice and therefore the LastSeen field most likely never was defined in the presence file. This migration adds the field and migrates the table to version 4. Signed-off-by: Oren Hurvitz <orenh@kitely.com>0.8.2-post-fixes
parent
5a59a6d445
commit
818735ae2c
|
@ -36,3 +36,13 @@ BEGIN;
|
||||||
CREATE INDEX RegionID ON Presence("RegionID");
|
CREATE INDEX RegionID ON Presence("RegionID");
|
||||||
|
|
||||||
COMMIT;
|
COMMIT;
|
||||||
|
|
||||||
|
:VERSION 4 # Making sure LastSeen is actually defined in the table as it most likely erred in the double version 2 migration above
|
||||||
|
|
||||||
|
BEGIN;
|
||||||
|
|
||||||
|
ALTER TABLE Presence
|
||||||
|
DROP COLUMN IF EXISTS "LastSeen",
|
||||||
|
ADD COLUMN "LastSeen" Timestamp;
|
||||||
|
|
||||||
|
COMMIT;
|
Loading…
Reference in New Issue