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

Sometimes placeholder values change - this doesn't seem to update the checksum value #269

Open
sjd2021 opened this issue Mar 7, 2022 · 3 comments
Labels

Comments

@sjd2021
Copy link

sjd2021 commented Mar 7, 2022

Logically, I guess the placeholders come into play after a checksum has already been calculated. How can I ensure the checksum changes so that my repeatable migrations still run when needed without me having to make a random whitespace change?

In flyway-based java projects, I had partially code-based migrations for some of the things I'm trying to do here and I could generate a custom checksum value which made this work. I'm not sure of a good solution right now for this with evolve, which works fantastically for every other scenario I've needed up till now btw.

@lecaillon
Copy link
Owner

Yes, you're right. That's why it is not re-executed even if you change the placeholders. Maybe you can use the latest version of Evolve 3.1.0-alpha7 and use the new option -- evolve-repeat-always at the beginning of the script to always execute a repeatable migration ?

@sjd2021
Copy link
Author

sjd2021 commented Mar 7, 2022

I don't want that to happen since we run so many instances. Is it worth exploring an option to calculate the checksums post-placeholder-eval or is such an idea not likely to be approved due to philosophical reasons, etc.?

@matthooper
Copy link

+1 for checksums after placeholder substitution. Or at least having a way to denote some scripts as repeat-if-changed vs repeat-always.

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

No branches or pull requests

3 participants