Add blacklist functionality

This commit is contained in:
Rafael Taranto 2019-04-29 23:14:32 -03:00 committed by Josh Harvey
parent a638524249
commit 4640b4a774
6 changed files with 57 additions and 7 deletions

View file

@ -0,0 +1,17 @@
var db = require('./db')
exports.up = function (next) {
const sql =
[`create table blacklist (
crypto_code text not null,
address text not null,
unique (crypto_code, address)
)`
]
db.multi(sql, next)
}
exports.down = function (next) {
next()
}