fix up sweeping

This commit is contained in:
Josh Harvey 2016-06-03 03:14:22 +03:00
parent 751067bace
commit 19ebf9d2a2
4 changed files with 37 additions and 22 deletions

View file

@ -0,0 +1,14 @@
var db = require('./db')
exports.up = function (next) {
var sql = [
'alter table cash_out_hds add last_checked timestamptz not null default now()',
'alter table cash_out_hds add confirmed boolean not null default false',
'create index on cash_out_hds (confirmed, last_checked)'
]
db.multi(sql, next)
}
exports.down = function (next) {
next()
}