Add timestamp to migrations.run_at.

This commit is contained in:
Jonathan Bernard 2017-02-11 20:19:39 -06:00
parent e35a5177ef
commit ad1540ca20

View File

@ -20,7 +20,7 @@ WHERE table_name = 'migrations';""")
CREATE TABLE IF NOT EXISTS migrations (
id SERIAL PRIMARY KEY,
name VARCHAR NOT NULL,
run_at TIMESTAMP NOT NULL DEFAULT NOW())"""))
run_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW())"""))
proc rollbackWithErr (pgConn: DbConn, errMsg: string): void =
pgConn.exec(sql"ROLLBACK")