Add device_id to cash_out_actions table (#164)
If a costumer originates a cashOut transaction at one device, and then redeemed at a different device, the wrong machine would have bills debited from it. With device_id being saved at the cash_out_actions table the bills can be properly reconciled.
This commit is contained in:
parent
1a8ef31d39
commit
38aa006ecc
2 changed files with 13 additions and 1 deletions
|
|
@ -0,0 +1,12 @@
|
|||
var db = require('./db')
|
||||
|
||||
exports.up = function (next) {
|
||||
var sql = [
|
||||
"alter table cash_out_actions add device_id text not null default ''"
|
||||
]
|
||||
db.multi(sql, next)
|
||||
}
|
||||
|
||||
exports.down = function (next) {
|
||||
next()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue