Merge pull request #28 from Pear-Trading/finn/PSQLupgradefix

Fix to PostgreSQL upgrade
This commit is contained in:
Finn 2017-08-14 17:52:01 +01:00 committed by GitHub
commit 3197352ff2

View file

@ -6,7 +6,7 @@ BEGIN;
;
ALTER TABLE pending_transactions ADD COLUMN purchase_time timestamp;
UPDATE transactions SET purchase_time = submitted_at;
UPDATE pending_transactions SET purchase_time = submitted_at;
ALTER TABLE pending_transactions ALTER COLUMN purchase_time SET NOT NULL;