feat: handle T&C photos and UI photos roll
This commit is contained in:
parent
ff474ee507
commit
e729de1410
12 changed files with 428 additions and 73 deletions
13
migrations/1627563019030-add-customer-tc-photo-path.js
Normal file
13
migrations/1627563019030-add-customer-tc-photo-path.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
const db = require('./db')
|
||||
|
||||
exports.up = function (next) {
|
||||
const sql = [
|
||||
'ALTER TABLE cash_in_txs ADD COLUMN tx_customer_photo_at timestamptz, ADD COLUMN tx_customer_photo_path text',
|
||||
'ALTER TABLE cash_out_txs ADD COLUMN tx_customer_photo_at timestamptz, ADD COLUMN tx_customer_photo_path text'
|
||||
]
|
||||
db.multi(sql, next)
|
||||
}
|
||||
|
||||
exports.down = function (next) {
|
||||
next()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue