/// <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()); }
private static void run_update_check(ConfigurationPropertyHolder configuration) { if (!configuration.Silent) { Console.WriteLine("NOTE: Running this command will create the Roundhouse tables, if they don't exist."); Console.WriteLine("Please press enter when ready to kick..."); Console.ReadLine(); } // Info and warn level logging is turned off, in order to make it easy to use the output of this command. change_log_level(Level.Error); RoundhouseUpdateCheckRunner update_check_runner = get_update_check_runner(configuration, get_migration_runner(configuration)); update_check_runner.run(); if (!configuration.Silent) { Console.WriteLine("{0}Please press enter to continue...", Environment.NewLine); Console.Read(); } }