-
Notifications
You must be signed in to change notification settings - Fork 523
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
[Support][Documentation] Confused about how to use fix
#168
Comments
@1vn mind helping out? |
Thank you for such a detailed and clear question. I appreciate you taking the time to do this.
I've been away from Pressly for a while so I may be rusty with the details. @VojtechVitek please correct me if I'm wrong or missing something 😄 |
Thanks for your response! I have a couple follow up questions, I will try to make them quick.
|
|
Got it. Thanks again! I will open a pull request to add this information to the README once I finish up integrating |
First, let me state my understanding of the issue with timestamp versioning (aka the versioning problem), because it may be the source of my confusion. (I posted a clarifying question here).
goose create
on 2018-01-01, thereby generating2018-01-01_first_migration.sql
. She is working on a big task, so it will be a couple days before this migration is deployed to the STAGING environment.goose create
, generating2018-01-02_second_migration.sql
. His task is just a quick fix, so this migration is deployed to STAGING later that day.2018-01-01_first_migration.sql
is deployed to STAGING. However this migration is not actually executed against STAGING, because its timestamp is less than that of2018-01-02_second_migration.sql
, which was already executed against STAGING. This is crux of the issue.Does that accurately express the versioning problem? Moving on to my questions about
fix
...Question 1
The README contains the following blurb:
To me, this seems to say that
fix
should be called as part of the deploy from STAGING to PRODUCTION, but that would not address the issue described above --2018-01-01_first_migration.sql
will still not be executed against STAGING. Instead, I would think thatfix
should be called as part of the deploy to STAGING. Do I have the right idea here?Question 2
I would think that the changes made by
fix
(renamed migrations) should be checked in to source control, committed to the appropriate branch, and pushed to the main repo as part of the deployment. Is that correct? Perhaps this is self evident, but I think it would be good to note somewhere considering this is probably the most involved aspect of integratingfix
into a CI/CD setup.Overall I think there is a need for more documentation around
fix
and hybrid versioning. Perhaps if I am able to get these questions sorted I can make some additions to the README.The text was updated successfully, but these errors were encountered: