fix: syntax error in migration file

This commit is contained in:
siiky 2022-12-16 12:32:38 +00:00 committed by Rafael
parent 01303d6454
commit a607868942

View file

@ -4,7 +4,7 @@ exports.up = function (next) {
var sql = [
`CREATE TABLE blacklist_temp (
address TEXT NOT NULL UNIQUE
)`
)`,
`INSERT INTO blacklist_temp (address) SELECT DISTINCT address FROM blacklist`,
`DROP TABLE blacklist`,
`ALTER TABLE blacklist_temp RENAME TO blacklist`