feat: add cash-out fixed fee columns to DB

This commit is contained in:
siiky 2022-10-10 16:05:12 +01:00 committed by Rafael
parent 09df11e7a9
commit c5e7818836
2 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,7 @@
const db = require('./db')
exports.up = next => db.multi([
'ALTER TABLE cash_out_txs ADD COLUMN fixed_fee numeric(14, 5) NOT NULL DEFAULT 0;'
], next)
exports.down = next => next()

View file

@ -0,0 +1,7 @@
const { saveConfig } = require('../lib/new-settings-loader')
exports.up = next => saveConfig({ 'commissions_cashOutFixedFee': 0 })
.then(next)
.catch(next)
exports.down = next => next()