* Revert "Migration sql changes (#199)"
This reverts commit 12c834469c.
* Save migrate file on db
* Add message on migration error in lamassu-update
14 lines
323 B
JavaScript
14 lines
323 B
JavaScript
var db = require('./db')
|
|
|
|
exports.up = function (next) {
|
|
const sql = [
|
|
'alter table cash_in_txs add column terms_accepted boolean not null default false',
|
|
'alter table cash_out_txs add column terms_accepted boolean not null default false'
|
|
]
|
|
|
|
db.multi(sql, next)
|
|
}
|
|
|
|
exports.down = function (next) {
|
|
next()
|
|
}
|