timezone migrations

This commit is contained in:
Josh Harvey 2016-05-11 14:09:58 +03:00
parent 694f3e5e96
commit 5418498d06
2 changed files with 18 additions and 1 deletions

View file

@ -0,0 +1,17 @@
var db = require('./db')
exports.up = function (next) {
var sql = [
'alter table transactions alter created type timestamptz',
'alter table bills alter created type timestamptz',
'alter table dispenses alter created type timestamptz',
'alter table machine_events alter created type timestamptz',
'alter table pairing_tokens alter created type timestamptz',
'alter table pending_transactions alter updated type timestamptz'
]
db.multi(sql, next)
}
exports.down = function (next) {
next()
}