private bool check_folder(MigrationsFolder migration_folder) { if (!file_system.directory_exists(migration_folder.folder_full_path)) { return(true); } var file_names = file_system.get_all_file_name_strings_recurevly_in(migration_folder.folder_full_path, SQL_EXTENSION); foreach (string sql_file in file_names) { string sql_file_text = migration_runner.replace_tokens(migration_runner.get_file_text(sql_file)); bool script_should_run = database_migrator.this_script_is_new_or_updated( file_system.get_file_name_from(sql_file), sql_file_text, environment_set); if (script_should_run) { return(false); } } return(true); }