lamassu-server/packages/server/migrations/022-add_cash_in_sent.js
2025-05-12 10:52:54 +01:00

18 lines
559 B
JavaScript

var db = require('./db')
exports.up = function (next) {
var sql = [
'alter table cash_in_txs add column send boolean not null default false',
'alter table cash_in_txs rename currency_code to fiat_code',
'alter table bills rename currency_code to fiat_code',
'alter table bills rename denomination to fiat',
'alter table bills drop column to_address',
'alter table bills drop column device_id',
'alter table cash_out_txs rename currency_code to fiat_code'
]
db.multi(sql, next)
}
exports.down = function (next) {
next()
}