2
1
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2023-12-13 21:00:40 +01:00

💄 Output overall from -> to version during migration (#7329)

no issue

- Migrations weren't clear what version the database was
This commit is contained in:
Hannah Wolfe 2016-09-06 13:59:54 +02:00 committed by Katharina Irrgang
parent 2142a9c587
commit 761d963893

View file

@ -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;
@ -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);
});