lamassu-server/migrations/1542811343367-add-error-to-trades.js
Davit Abulashvili 907cd08cf1 Log unsuccessful trade attempts in the db (#224)
* Save trade error in table trades

* Add one migration, Add error column to trades table

* changes in plugins.js file

* Apply standardjs to plugins.js file
2018-11-28 20:24:48 +02:00

15 lines
264 B
JavaScript

var db = require('./db')
exports.up = function (next) {
const sql = [
'alter table trades add column error text',
]
db.multi(sql, next)
}
exports.down = function (next) {
const sql = ['alter table trades drop column error']
db.multi(sql, next)
}