Add blacklist functionality
This commit is contained in:
parent
a638524249
commit
4640b4a774
6 changed files with 57 additions and 7 deletions
17
migrations/1556582597515-blacklist.js
Normal file
17
migrations/1556582597515-blacklist.js
Normal 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()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue