feat: sms data editable fields
This commit is contained in:
parent
5406a3cfdd
commit
62284a1d33
5 changed files with 71 additions and 11 deletions
22
migrations/1641482376890-add-overrides-to-subscriber-info.js
Normal file
22
migrations/1641482376890-add-overrides-to-subscriber-info.js
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
var db = require('./db')
|
||||
|
||||
exports.up = function (next) {
|
||||
var sql = [
|
||||
`ALTER TABLE customers
|
||||
ADD COLUMN subscriber_info_override VERIFICATION_TYPE,
|
||||
ADD COLUMN subscriber_info_override_by UUID,
|
||||
ADD COLUMN subscriber_info_override_at TIMESTAMPTZ
|
||||
`,
|
||||
`ALTER TABLE edited_customer_data
|
||||
ADD COLUMN phone TEXT,
|
||||
ADD COLUMN phone_at TIMESTAMPTZ,
|
||||
ADD COLUMN phone_by UUID
|
||||
`
|
||||
]
|
||||
|
||||
db.multi(sql, next)
|
||||
}
|
||||
|
||||
exports.down = function (next) {
|
||||
next()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue