feat: suspension trigger
This commit is contained in:
parent
118852a433
commit
e0581fc39b
4 changed files with 31 additions and 6 deletions
13
migrations/1601649726488-user-suspend.js
Normal file
13
migrations/1601649726488-user-suspend.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
const db = require('./db')
|
||||
|
||||
exports.up = function (next) {
|
||||
var sql = [
|
||||
"ALTER TABLE customers ADD COLUMN suspended_until timestamptz"
|
||||
]
|
||||
|
||||
db.multi(sql, next)
|
||||
}
|
||||
|
||||
exports.down = function (next) {
|
||||
next()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue