feat: adapted the new settings loader to work with the db instead of the json file fix: fixed the schema migration file fix: updated accounts to work with the db fix: fetch only data with the new schema version fix: change the account saving process so there's no more than one account record chore: removed unnecessary TODO comments fix: replaced an error throwing with a Promise reject fix: when looking for the latest config, don't limit it to the new ones fix: fix function names on gql server fix: remove duplicate import fix: return an empty object when there's no schema_version 2 config yet
13 lines
236 B
JavaScript
13 lines
236 B
JavaScript
const db = require('./db')
|
|
|
|
module.exports.up = function (next) {
|
|
var sql = [
|
|
'alter table user_config add column schema_version smallint DEFAULT 1'
|
|
]
|
|
|
|
db.multi(sql, next)
|
|
}
|
|
|
|
module.exports.down = function (next) {
|
|
next()
|
|
}
|