Removed initial schema check
This commit is contained in:
parent
15ed41741e
commit
7f5b7eea16
2 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
3
index.js
3
index.js
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue