public string ExecuteMigration(string pathScriptFolder) { var logger = new Log(); DbUp.Engine.UpgradeEngine upgrader = GetDbUpgrader(pathScriptFolder, logger); var result = upgrader.PerformUpgrade(); return(logger.GetLog()); }
void WhenDatabaseIsUpgraded() { upgradeEngine = upgradeEngineBuilder.Build(); upgradeResult = upgradeEngine.PerformUpgrade(); }
void WhenCheckIfDatabaseUpgradeIsRequired() { upgradeEngine = upgradeEngineBuilder.Build(); isUpgradeRequired = upgradeEngine.IsUpgradeRequired(); }