fix: sqlite migrations

This commit is contained in:
Nick
2019-02-22 17:05:18 -05:00
parent fefd60a356
commit 3743777b97
10 changed files with 440 additions and 49 deletions

View File

@@ -11,8 +11,16 @@ module.exports = {
WIKI.models = require('./db').init()
await WIKI.models.onReady
await WIKI.configSvc.loadFromDb()
try {
await WIKI.models.onReady
await WIKI.configSvc.loadFromDb()
} catch (err) {
WIKI.logger.error('Database Initialization Error: ' + err.message)
if (WIKI.IS_DEBUG) {
console.error(err)
}
process.exit(1)
}
this.bootMaster()
},