converted all timestamps to string representation

This commit is contained in:
azivner
2017-12-10 12:56:59 -05:00
parent e3b708c322
commit 021f02bd8c
22 changed files with 304 additions and 96 deletions

View File

@@ -70,6 +70,8 @@ async function migrate() {
await options.setOption("db_version", mig.dbVersion);
});
sql.setDbReadyAsResolved();
log.info("Migration to version " + mig.dbVersion + " has been successful.");
mig['success'] = true;
@@ -87,13 +89,6 @@ async function migrate() {
return migrations;
}
async function isDbUpToDate() {
const dbVersion = parseInt(await options.getOption('db_version'));
return dbVersion >= app_info.db_version;
}
module.exports = {
migrate,
isDbUpToDate
migrate
};