private static async Task <int> Upgrade(UpgradeVerb verb) { Logger.Info("Running command: upgrade"); DatabaseMigrator migrator = new DatabaseMigrator(verb); await migrator.UpgradeAsync(verb); return(0); }
public async Task UpgradeAsync(UpgradeVerb verb) { await InitializeAsync(); var appliedMigrations = await executor.ExecuteAsync(); if (appliedMigrations.Count == 0) { Logger.Info("There are no pending migrations. No changes have been made."); } }