Exemplo n.º 1
0
        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();
 }