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:
parent
7761815b07
commit
1cd06a024c
1 changed files with 15 additions and 0 deletions
15
migrations/1552064796155-tx-paper-wallet.js
Normal file
15
migrations/1552064796155-tx-paper-wallet.js
Normal 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()
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue