fix: migrate older values

This commit is contained in:
Sérgio Salgado 2021-06-28 19:03:34 +01:00 committed by Josh Harvey
parent 830b8132d0
commit 8c32da9543

View file

@ -2,6 +2,7 @@ var db = require('./db')
exports.up = function (next) {
var sql = [
`DELETE FROM blacklist WHERE created_by_operator = FALSE`,
`ALTER TABLE blacklist DROP CONSTRAINT blacklist_crypto_code_address_created_by_operator_key`,
`ALTER TABLE blacklist ADD CONSTRAINT blacklist_crypto_code_address_key UNIQUE (crypto_code, address)`,
`DROP INDEX blacklist_created_by_operator_idx`,