WIPP
This commit is contained in:
parent
b4d8f3cd4c
commit
340b39d47d
9 changed files with 189 additions and 72 deletions
20
migrations/023-add-dispenses-to-cash-out.js
Normal file
20
migrations/023-add-dispenses-to-cash-out.js
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
var db = require('./db')
|
||||
|
||||
exports.up = function (next) {
|
||||
var sql = [
|
||||
'alter table cash_out_txs add column dispensed_1 integer',
|
||||
'alter table cash_out_txs add column dispensed_2 integer',
|
||||
'alter table cash_out_txs add column rejected_1 integer',
|
||||
'alter table cash_out_txs add column rejected_2 integer',
|
||||
'alter table cash_out_txs add column denomination_1 integer',
|
||||
'alter table cash_out_txs add column denomination_2 integer',
|
||||
'alter table cash_out_txs add column dispense_error text',
|
||||
'alter table cash_out_txs add column dispense_time timestamptz',
|
||||
'drop table dispenses'
|
||||
]
|
||||
db.multi(sql, next)
|
||||
}
|
||||
|
||||
exports.down = function (next) {
|
||||
next()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue