This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
Foodloop-Server/share/ddl/PostgreSQL/upgrade/3-4/001-auto.sql

16 lines
339 B
MySQL
Raw Normal View History

2017-08-14 14:04:24 +00:00
-- Convert schema 'share/ddl/_source/deploy/3/001-auto.yml' to 'share/ddl/_source/deploy/4/001-auto.yml':;
;
BEGIN;
;
ALTER TABLE pending_transactions ADD COLUMN purchase_time timestamp;
2017-08-14 16:41:01 +00:00
UPDATE pending_transactions SET purchase_time = submitted_at;
2017-08-14 14:04:24 +00:00
ALTER TABLE pending_transactions ALTER COLUMN purchase_time SET NOT NULL;
;
COMMIT;