Repository navigation
fix(flow-php/postgresql): migrate skips pending migrations older than the latest executed - #2760
Merged
Merged
Conversation
… the latest executed - migrate runs every pending migration up to the target - MigrationMode: all_pending (default), strict_order fails - symfony bundle: migrations.mode key, profiler row - migrate command prints MigrationException as an error
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 1.x #2760 +/- ##
=========================================
Coverage 91.15% 91.15%
- Complexity 32569 32571 +2
=========================================
Files 2255 2255
Lines 94044 94063 +19
=========================================
+ Hits 85726 85746 +20
+ Misses 8318 8317 -1 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves: #2757
Change Log
Added
flow-php/postgresql-MigrationModewithALL_PENDINGandSTRICT_ORDER, set throughConfiguration::$modeflow-php/symfony-postgresql-bundle-migrations.modeconfiguration keyflow-php/symfony-postgresql-bundle- migration mode in the profiler panelFixed
flow-php/postgresql-Migrator::migrate()runs pending migrations older than the latest executed oneflow-php/symfony-postgresql-bundle-flow:migrations:migrateno longer reports "Already up to date" with pending migrationsChanged
flow-php/symfony-postgresql-bundle-flow:migrations:migrateprints aMigrationExceptionas an error and exits with code 1Removed
Deprecated
Security