Fix to PostgreSQL upgrade

This commit is contained in:
Finn 2017-08-14 17:41:01 +01:00
parent 2bb6287579
commit 08c6b2886e

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;