feat: suspension trigger

This commit is contained in:
Taranto 2020-10-02 16:56:41 +01:00 committed by Josh Harvey
parent 118852a433
commit e0581fc39b
4 changed files with 31 additions and 6 deletions

View 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()
}