feat: advanced options screen triggers

This commit is contained in:
José Oliveira 2021-04-12 09:48:47 +01:00 committed by Josh Harvey
parent c4a26a7f37
commit 5ed84b7cdb
6 changed files with 337 additions and 65 deletions

View file

@ -0,0 +1,16 @@
const db = require('./db')
exports.up = function (next) {
const sql2 = [`insert into user_config (type, data, valid, schema_version) values ('config', '{"config":{
"triggersConfig_expirationTime": "Forever",
"triggersConfig_automation": "Automatic"
} }', true, 2)`]
db.multi(sql2, next)
}
exports.down = function (next) {
next()
}