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.
12 lines
218 B
JavaScript
12 lines
218 B
JavaScript
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()
|
|
}
|