lamassu-server/migrations/1642518884925-manual-custom-info-requests.js
Sérgio Salgado 87a3b718db fix: allow for custom info requests to be allowed or blocked
fix: improve custom info requests backend
fix: add custom info requests to trigger overrides
2022-01-18 18:46:55 +00:00

16 lines
516 B
JavaScript

var db = require('./db')
exports.up = function (next) {
var sql = [
`ALTER TABLE customers_custom_info_requests DROP COLUMN approved`,
`ALTER TABLE customers_custom_info_requests ADD COLUMN override verification_type NOT NULL DEFAULT 'automatic'`,
`ALTER TABLE customers_custom_info_requests ADD COLUMN override_by UUID REFERENCES users(id)`,
`ALTER TABLE customers_custom_info_requests ADD COLUMN override_at TIMESTAMPTZ`
]
db.multi(sql, next)
}
exports.down = function (next) {
next()
}