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
Geir Nøklebye 2015-08-03 10:05:04 +02:00 committed by Oren Hurvitz
parent 5a59a6d445
commit 818735ae2c
1 changed files with 10 additions and 0 deletions

View File

@ -36,3 +36,13 @@ BEGIN;
CREATE INDEX RegionID ON Presence("RegionID");
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;