/// <summary> /// Call this method to run the migrator after you have set the options. /// </summary> public void Run() { RoundhouseMigrationRunner migrator = GetMigrationRunner(); migrator.run(); }
public void run_the_task() { if (this.loggingHelper.HasLoggedErrors) { return; } Log4NetAppender.configure_without_console(); ApplicationConfiguraton.set_defaults_if_properties_are_not_set(this); if (Restore && string.IsNullOrEmpty(RestoreFromPath)) { throw new Exception( "If you set Restore to true, you must specify a location for the database to be restored from. That property is RestoreFromPath in MSBuild."); } ApplicationConfiguraton.build_the_container(this); IRunner roundhouse_runner = new RoundhouseMigrationRunner( RepositoryPath, Container.get_an_instance_of <EnvironmentSet>(), Container.get_an_instance_of <KnownFolders>(), Container.get_an_instance_of <FileSystemAccess>(), Container.get_an_instance_of <DatabaseMigrator>(), Container.get_an_instance_of <VersionResolver>(), Silent, Drop, DoNotCreateDatabase, WithTransaction, this); roundhouse_runner.run(); }
public static void run_migrator(ConfigurationPropertyHolder configuration) { RoundhouseMigrationRunner migration_runner = get_migration_runner(configuration); migration_runner.run(); if (!configuration.Silent) { Console.WriteLine("{0}Please press enter to continue...", Environment.NewLine); Console.Read(); } }
/// <summary> /// Call this method to find out if there are any new or changed scripts that would be executed when the Run-method is called. /// </summary> public bool IsDbUpToDate() { RoundhouseMigrationRunner migrationRunner = GetMigrationRunner(); RoundhouseUpdateCheckRunner updateCheckRunner = new RoundhouseUpdateCheckRunner( Container.get_an_instance_of <environments.EnvironmentSet>(), Container.get_an_instance_of <KnownFolders>(), Container.get_an_instance_of <FileSystemAccess>(), Container.get_an_instance_of <DatabaseMigrator>(), configuration, migrationRunner); return(updateCheckRunner.is_database_up_to_date()); }
/// <summary> /// Call this method to run the migrator after all of your other options are set. /// </summary> public void Run() { ApplicationConfiguraton.set_defaults_if_properties_are_not_set(configuration); ApplicationConfiguraton.build_the_container(configuration); var migrator = new RoundhouseMigrationRunner( configuration.RepositoryPath, Container.get_an_instance_of<Environment>(), Container.get_an_instance_of<KnownFolders>(), Container.get_an_instance_of<FileSystemAccess>(), Container.get_an_instance_of<DatabaseMigrator>(), Container.get_an_instance_of<VersionResolver>(), configuration.Silent, configuration.Drop, configuration.DoNotCreateDatabase, configuration.WithTransaction, configuration.RecoveryModeSimple); migrator.run(); }
/// <summary> /// Call this method to run the migrator after you have set the options. /// </summary> public void Run() { ApplicationConfiguraton.set_defaults_if_properties_are_not_set(configuration); ApplicationConfiguraton.build_the_container(configuration); RoundhouseMigrationRunner migrator = new RoundhouseMigrationRunner( configuration.RepositoryPath, Container.get_an_instance_of <Environment>(), Container.get_an_instance_of <KnownFolders>(), Container.get_an_instance_of <FileSystemAccess>(), Container.get_an_instance_of <DatabaseMigrator>(), Container.get_an_instance_of <VersionResolver>(), configuration.Silent, configuration.Drop, configuration.DoNotCreateDatabase, configuration.WithTransaction, configuration.RecoveryModeSimple, configuration); migrator.run(); }
private static RoundhouseUpdateCheckRunner get_update_check_runner(ConfigurationPropertyHolder configuration, RoundhouseMigrationRunner migration_runner) { return(new RoundhouseUpdateCheckRunner( Container.get_an_instance_of <environments.EnvironmentSet>(), Container.get_an_instance_of <KnownFolders>(), Container.get_an_instance_of <FileSystemAccess>(), Container.get_an_instance_of <DatabaseMigrator>(), configuration, migration_runner)); }
private static RoundhouseRedGateCompareRunner get_diff_runner(ConfigurationPropertyHolder configuration, RoundhouseMigrationRunner migration_runner) { return(new RoundhouseRedGateCompareRunner( Container.get_an_instance_of <KnownFolders>(), Container.get_an_instance_of <FileSystemAccess>(), configuration, migration_runner)); }
public void run_the_task() { if (this.loggingHelper.HasLoggedErrors) { return; } Log4NetAppender.configure_without_console(); ApplicationConfiguraton.set_defaults_if_properties_are_not_set(this); if (Restore && string.IsNullOrEmpty(RestoreFromPath)) { throw new Exception( "If you set Restore to true, you must specify a location for the database to be restored from. That property is RestoreFromPath in MSBuild."); } ApplicationConfiguraton.build_the_container(this); IRunner roundhouse_runner = new RoundhouseMigrationRunner( RepositoryPath, Container.get_an_instance_of<Environment>(), Container.get_an_instance_of<KnownFolders>(), Container.get_an_instance_of<FileSystemAccess>(), Container.get_an_instance_of<DatabaseMigrator>(), Container.get_an_instance_of<VersionResolver>(), Silent, Drop, DoNotCreateDatabase, WithTransaction, RecoveryModeSimple, this); roundhouse_runner.run(); }
private static RoundhouseUpdateCheckRunner get_update_check_runner(ConfigurationPropertyHolder configuration, RoundhouseMigrationRunner migration_runner) { return new RoundhouseUpdateCheckRunner( Container.get_an_instance_of<environments.Environment>(), Container.get_an_instance_of<KnownFolders>(), Container.get_an_instance_of<FileSystemAccess>(), Container.get_an_instance_of<DatabaseMigrator>(), configuration, migration_runner); }
private static RoundhouseRedGateCompareRunner get_diff_runner(ConfigurationPropertyHolder configuration, RoundhouseMigrationRunner migration_runner) { return new RoundhouseRedGateCompareRunner( Container.get_an_instance_of<KnownFolders>(), Container.get_an_instance_of<FileSystemAccess>(), configuration, migration_runner); }