Skip to content

status: report applied migrations missing from the filesystem - #1115

Open
AshSgDe29071999 wants to merge 1 commit into
pressly:mainfrom
AshSgDe29071999:fix/status-missing-source
Open

status: report applied migrations missing from the filesystem#1115
AshSgDe29071999 wants to merge 1 commit into
pressly:mainfrom
AshSgDe29071999:fix/status-missing-source

Conversation

@AshSgDe29071999

Copy link
Copy Markdown

Status only walked local sources, so a version present in goose_db_version but absent from the checkout was omitted. Operators could think production matched their tree.

Surface those DB-only rows as StateMissing. Skip goose version 0 (the table init row).

Fixes #1073

Test

go test . -run TestProviderRun -count=1

Status only listed local sources, so a version present in goose_db_version
but absent from the checkout was omitted. Operators could think production
matched their tree.

Surface those rows as state missing.

See pressly#1073
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

status should surface applied DB versions missing from the migration directory

1 participant