Skip to content

Add a flag to ignore unknown migrations - #145

Merged
gryaele merged 3 commits into
mainfrom
elenagryaznova/pop-4292-add-an-option-to-ignore-unknown-migrations-on-stage
Aug 28, 2026
Merged

Add a flag to ignore unknown migrations#145
gryaele merged 3 commits into
mainfrom
elenagryaznova/pop-4292-add-an-option-to-ignore-unknown-migrations-on-stage

Conversation

@gryaele

@gryaele gryaele commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

This pull request updates the initialization logic for the AnonStatsStore to provide more flexibility when running database migrations. The main change is the addition of an ignore_missing_migrations parameter, which allows the caller to control whether missing migration files should be ignored.

Database migration improvements:

  • ampc-anon-stats/src/store/mod.rs: Added an ignore_missing_migrations boolean parameter to the AnonStatsStore::new method, enabling the option to ignore missing migration files when initializing the database store. The migration runner now uses this parameter with .set_ignore_missing(). [1] [2]

@gryaele
gryaele enabled auto-merge (squash) August 28, 2026 11:57
@gryaele
gryaele merged commit 82819d5 into main Aug 28, 2026
13 checks passed
@gryaele
gryaele deleted the elenagryaznova/pop-4292-add-an-option-to-ignore-unknown-migrations-on-stage branch August 28, 2026 12:05
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.

2 participants