generated from nimblehq/git-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Migration issues using Goose
Gut edited this page Feb 25, 2021
·
3 revisions
Regarding migration RFC, Gin-templates is using goose as a database migration tool. However, goose doesn't support migrate the older migration files.
For example
- Developer A create migration
20212000000000_migration_a.sql
onbranch-a
. - Developer B create migration
20211000000000_migration_b.sql
onbranch-b
. - Developer A merge
branch-a
todevelop
branch and migration20212000000000_migration_a.sql
is MIGRATED by goose. - Developer B merge
branch-b
todevelop
branch and migration20211000000000_migration_b.sql
is IGNORED by goose.
From above scenario, you can see that the migration_b.sql
is ignored because goose doesn't support migrate the older migration.
Current suggestion is make sure if your migration is in order with the destination branch. This validation will be added in the next release (for more information https://github.com/nimblehq/gin-templates/issues/29)