Add 'cash_in_txs' migration

This migration adds a new column to the 'cash_in_txs' table to
accommodate the new paper wallet feature for compliance.
This commit is contained in:
littlenaut 2019-03-08 20:26:44 +00:00 committed by Josh Harvey
parent 7761815b07
commit 1cd06a024c

View file

@ -0,0 +1,15 @@
'use strict'
const db = require('./db')
exports.up = function (next) {
var sql = [
'ALTER TABLE cash_in_txs ADD COLUMN is_paper_wallet boolean null DEFAULT false',
]
db.multi(sql, next)
}
exports.down = function (next) {
next()
}