Merge pull request #28 from Pear-Trading/finn/PSQLupgradefix
Fix to PostgreSQL upgrade
This commit is contained in:
commit
3197352ff2
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ BEGIN;
|
||||||
;
|
;
|
||||||
ALTER TABLE pending_transactions ADD COLUMN purchase_time timestamp;
|
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;
|
ALTER TABLE pending_transactions ALTER COLUMN purchase_time SET NOT NULL;
|
||||||
|
|
||||||
|
|
Reference in a new issue