Merge remote-tracking branch 'origin/release-9.0' into chore/merge-9-into-10-20240206
This commit is contained in:
commit
35e40f4528
52 changed files with 4794 additions and 6007 deletions
14
migrations/1700123461281-customer-email.js
Normal file
14
migrations/1700123461281-customer-email.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
const db = require('./db')
|
||||
|
||||
exports.up = function (next) {
|
||||
let sql = [
|
||||
'ALTER TABLE customers ADD COLUMN email text unique',
|
||||
'ALTER TABLE customers ADD COLUMN email_at timestamptz',
|
||||
]
|
||||
|
||||
db.multi(sql, next)
|
||||
}
|
||||
|
||||
exports.down = function (next) {
|
||||
next()
|
||||
}
|
||||
18
migrations/1700123461282-customer-auth-advanced-trigger.js
Normal file
18
migrations/1700123461282-customer-auth-advanced-trigger.js
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
const { migrationSaveConfig } = require('../lib/new-settings-loader')
|
||||
|
||||
exports.up = function (next) {
|
||||
const triggersDefault = {
|
||||
triggersConfig_customerAuthentication: 'SMS',
|
||||
}
|
||||
|
||||
return migrationSaveConfig(triggersDefault)
|
||||
.then(() => next())
|
||||
.catch(err => {
|
||||
console.log(err.message)
|
||||
return next(err)
|
||||
})
|
||||
}
|
||||
|
||||
exports.down = function (next) {
|
||||
next()
|
||||
}
|
||||
14
migrations/1700123461283-phone-on-tx.js
Normal file
14
migrations/1700123461283-phone-on-tx.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
const db = require('./db')
|
||||
|
||||
exports.up = function (next) {
|
||||
let sql = [
|
||||
'ALTER TABLE cash_in_txs ADD COLUMN email text',
|
||||
'ALTER TABLE cash_out_txs ADD COLUMN email text',
|
||||
]
|
||||
|
||||
db.multi(sql, next)
|
||||
}
|
||||
|
||||
exports.down = function (next) {
|
||||
next()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue