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:
parent
2142a9c587
commit
761d963893
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue