You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using goose in a small team and we have run into an issue with different versions of goose producing different database schemas. We are using goose via a simple migrate.sh script that calls goose and then dumps the schema.sql after the goose command completes. As the schema is committed to the project there is a different schema being dumped depending on the version of goose used. The differences are related to the goose internal tables.
While I could filter out these tables I wondered if there is a recommended way to ensure that everyone on the team is using the same version of goose?
Some options that I can see are:
Building and committing the binary to the project.
Running goose via a docker container.
Checking the version in the migrate.sh script and make sure everyone is running the same version.
Thanks for goose it is really nice to use!
The text was updated successfully, but these errors were encountered:
Option 3 is the one I've used on many teams, and not just for goose but for most tool dependencies.
Having said that, the internal goose schema changes very infrequently. For example, in a recent version (v3.22.0), I updated the postgres schema to align with postgres best practices: #556
This shouldn't have a behavioral or functional difference though.
I am using goose in a small team and we have run into an issue with different versions of goose producing different database schemas. We are using goose via a simple migrate.sh script that calls goose and then dumps the schema.sql after the goose command completes. As the schema is committed to the project there is a different schema being dumped depending on the version of goose used. The differences are related to the goose internal tables.
While I could filter out these tables I wondered if there is a recommended way to ensure that everyone on the team is using the same version of goose?
Some options that I can see are:
Thanks for goose it is really nice to use!
The text was updated successfully, but these errors were encountered: