From 1cd06a024cb26a699f4e8424a27b27ae0ace719c Mon Sep 17 00:00:00 2001 From: littlenaut Date: Fri, 8 Mar 2019 20:26:44 +0000 Subject: [PATCH] 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. --- migrations/1552064796155-tx-paper-wallet.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 migrations/1552064796155-tx-paper-wallet.js diff --git a/migrations/1552064796155-tx-paper-wallet.js b/migrations/1552064796155-tx-paper-wallet.js new file mode 100644 index 00000000..24c12833 --- /dev/null +++ b/migrations/1552064796155-tx-paper-wallet.js @@ -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() +}