lamassu-server/migrations/027-tx_errors.js
Fabio Cigliano 12c834469c Migration sql changes (#199)
* safe migration script changes

* lamassu migration script fixes
2018-11-01 13:26:48 +02:00

20 lines
395 B
JavaScript

var db = require('./db')
exports.up = function (next) {
var sql = [
`create table if not exists cash_in_actions (
id serial primary key,
tx_id uuid not null,
action text not null,
error text,
error_code text,
tx_hash text,
created timestamptz not null default now()
)`
]
db.multi(sql, next)
}
exports.down = function (next) {
next()
}