Removed initial schema check

This commit is contained in:
Andris Reinman 2016-04-21 11:08:59 +03:00
parent 15ed41741e
commit 7f5b7eea16
2 changed files with 2 additions and 3 deletions

View file

@ -34,8 +34,6 @@ database="mailtrain"
charset="utf8mb4"
# enter path for mysql command line application
command="mysql"
# required database schema version
schema_version=1
[redis]
# enable to use Redis session cache or disable if Redis is not installed

View file

@ -40,7 +40,8 @@ settings.list(['db_schema_version'], (err, configItems) => {
}
let dbSchemaVersion = Number(configItems.dbSchemaVersion) || 0;
if (dbSchemaVersion < config.mysql.schema_version) {
// FIXME: take schema version from somewhere else than default config file
if (dbSchemaVersion < config.mysql.schema_version && 0) {
log.error('Database', 'Database schema outdated. Run `npm run sql` to upgrade');
return process.exit(1);
}