fix: migrate older values
This commit is contained in:
parent
830b8132d0
commit
8c32da9543
1 changed files with 1 additions and 0 deletions
|
|
@ -2,6 +2,7 @@ var db = require('./db')
|
||||||
|
|
||||||
exports.up = function (next) {
|
exports.up = function (next) {
|
||||||
var sql = [
|
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 DROP CONSTRAINT blacklist_crypto_code_address_created_by_operator_key`,
|
||||||
`ALTER TABLE blacklist ADD CONSTRAINT blacklist_crypto_code_address_key UNIQUE (crypto_code, address)`,
|
`ALTER TABLE blacklist ADD CONSTRAINT blacklist_crypto_code_address_key UNIQUE (crypto_code, address)`,
|
||||||
`DROP INDEX blacklist_created_by_operator_idx`,
|
`DROP INDEX blacklist_created_by_operator_idx`,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue