fix: migrate old error codes

This commit is contained in:
Rafael Taranto 2024-05-29 10:33:03 +01:00
parent 501da5f54a
commit ea92fa5c6d
4 changed files with 16 additions and 7 deletions

View file

@ -0,0 +1,13 @@
const db = require('./db')
exports.up = function (next) {
let sql = [
`UPDATE cash_out_txs SET error_code = 'walletScoringError' WHERE error_code = 'ciphertraceError'`
]
db.multi(sql, next)
}
exports.down = function (next) {
next()
}