Merge pull request #1055 from chaotixkilla/feat-custom-info-requests-as-manual-triggers

Add custom info request manual trigger behavior
This commit is contained in:
Rafael Taranto 2022-01-19 14:37:58 +00:00 committed by GitHub
commit d5b7b088cd
11 changed files with 167 additions and 88 deletions

View file

@ -0,0 +1,16 @@
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()
}