diff options
Diffstat (limited to 'server/initializers/installer.js')
-rw-r--r-- | server/initializers/installer.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/server/initializers/installer.js b/server/initializers/installer.js index 4823bc8c8..d5382364e 100644 --- a/server/initializers/installer.js +++ b/server/initializers/installer.js | |||
@@ -121,9 +121,8 @@ function createOAuthAdminIfNotExist (callback) { | |||
121 | logger.info('Username: ' + username) | 121 | logger.info('Username: ' + username) |
122 | logger.info('User password: ' + password) | 122 | logger.info('User password: ' + password) |
123 | 123 | ||
124 | logger.info('Creating Application collection.') | 124 | logger.info('Creating Application table.') |
125 | const application = db.Application.build({ sqlSchemaVersion: constants.LAST_SQL_SCHEMA_VERSION }) | 125 | db.Application.create({ migrationVersion: constants.LAST_MIGRATION_VERSION }).asCallback(callback) |
126 | application.save().asCallback(callback) | ||
127 | }) | 126 | }) |
128 | }) | 127 | }) |
129 | } | 128 | } |