Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update onetime script hash if script is modified #424

Open
bobinush opened this issue Jan 11, 2021 · 0 comments
Open

Update onetime script hash if script is modified #424

bobinush opened this issue Jan 11, 2021 · 0 comments

Comments

@bobinush
Copy link

I updated a old script in our Up folder to include some checks and thought --warnandignoreononetimescriptchanges would update the hash of the old script entry in the run history table, since that is what the wiki says.

WarnAndIgnoreOnOneTimeScriptChanges - Instructs RH to ignore and update the hash of changed one time scripts (DDL/DML in Up folder) that have previously been run against the database instead of failing. A warning is logged for each one time scripts that is rerun. Defaults to false.

But after looking in the ScriptsRun table I see that I now have two entries.

image

Is the wiki phrased wrong, the implementation incorrect or does Roundhouse look at the latest entry of a script if I would run it again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant