chucknorris/roundhouse — comment on commit f333dcf422d69423459c542ea3771ca16f3e4d9c
File:  line 0
By mpareja:

How about something like this?

```cs
private bool this_script_should_run(string script_name, string sql_to_run, bool run_this_script_once, bool run_this_script_every_time)
{
if (this_is_an_every_time_script(script_name, run_this_script_every_time))
{
return true;
}

if (is_running_all_any_time_scripts && !run_this_script_once)
{
return true;
}

if (this_script_has_run_already(script_name))
{
return this_script_has_changed_since_last_run(script_name, sql_to_run);
}
return true;
}
```