-
-
Notifications
You must be signed in to change notification settings - Fork 188
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
Simplify migrations #326
Comments
Just curious: what kind of commands do you need to run for every new version, and also before and after each update? Or is you script dealing with all these states, and most of the time not executing anything? |
Yes, that's what will happen most of the time |
OK thanks. Indeed it might be easier to maintain a separate shell/Python script than cluttering |
Beware with that... Migrations are loaded on the latest tag always, and all of them that apply are run sequentially, but Copier won't checkout each of them individually. Otherwise, you could never fix a bug in your migration script. |
Oh yes you're right, my bad. Then I'm definitely in favor of what you propose here. |
I'll take a look at implementing this. |
The current migrations workflow is quite difficult to maintain.
The goal was to give full flexibility, but after some usage, it seems to make things more difficult.
Instead of having a migrations definition such as this:
We should be having something like this:
Then, all data needed for migrations will be passed as env variables, which that script can load and use to handle all of them comfortably.
At the end of the day, that code is easier to maintain in a migrations script, and this way we avoid the need to repeat the same definition once and again for each version (as seen in the 1st example using
*mig
).The text was updated successfully, but these errors were encountered: