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/2-3/001-auto.sql

16 lines
315 B
MySQL
Raw Permalink Normal View History

2017-08-14 11:45:54 +00:00
-- Convert schema 'share/ddl/_source/deploy/2/001-auto.yml' to 'share/ddl/_source/deploy/3/001-auto.yml':;
;
BEGIN;
;
ALTER TABLE transactions ADD COLUMN purchase_time timestamp;
UPDATE transactions SET purchase_time = submitted_at;
ALTER TABLE transactions ALTER COLUMN purchase_time SET NOT NULL;
;
COMMIT;