Skip to content

Default db migration behavior should be to use migrations from current source #112

@akajla09

Description

@akajla09

Describe the bug
Currently, the default for go-migrate is to pull db migrations directly from Github (main branch) and run them (including with the autoMigrate flag). This means that you could potentially have a mismatch between the migrations being run and the server code if it is not up to date.

Expected behavior
Only the migrations up to the current version of source (whether built locally or pre-built) should run. This might mean packaging the migrations along with the binary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    datastoreRequires changes in the datastore layer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions