Updated DB and added more DateTime
This commit is contained in:
parent
f9703b6561
commit
b44a256434
13 changed files with 1885 additions and 3 deletions
15
share/ddl/PostgreSQL/upgrade/2-3/001-auto.sql
Normal file
15
share/ddl/PostgreSQL/upgrade/2-3/001-auto.sql
Normal file
|
@ -0,0 +1,15 @@
|
|||
-- 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;
|
Reference in a new issue