Skip to content

Commit

Permalink
馃拕 Output overall from -> to version during migration (#7329)
Browse files Browse the repository at this point in the history
no issue

- Migrations weren't clear what version the database was
  • Loading branch information
ErisDS authored and kirrg001 committed Sep 6, 2016
1 parent 2142a9c commit 761d963
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/server/data/migration/update.js
Expand Up @@ -54,9 +54,7 @@ migrateToDatabaseVersion = function migrateToDatabaseVersion(version, logger, mo
var migrationTasks = versioning.getUpdateDatabaseTasks(version, logger),
fixturesTasks = versioning.getUpdateFixturesTasks(version, logger);

logger.info('###########');
logger.info('Updating database to ' + version);
logger.info('###########\n');

modelOptions.transacting = transaction;

Expand Down Expand Up @@ -107,6 +105,7 @@ execute = function execute(options) {

return backup(logger)
.then(function () {
logger.info('Migration required from ' + fromVersion + ' to ' + toVersion);
return Promise.mapSeries(versionsToUpdate, function (versionToUpdate) {
return migrateToDatabaseVersion(versionToUpdate, logger, modelOptions);
});
Expand Down

0 comments on commit 761d963

Please sign in to comment.