Skip to content

feat(flow-php/postgresql): migration lock - #2763

Merged
norberttech merged 1 commit into
1.xfrom
migrations-locks
Nov 24, 2026
Merged

norberttech merged 1 commit into
1.xfrom
migrations-locks

Conversation

@norberttech

Copy link
Copy Markdown
Member

Resolves: #xxx

Change Log


Added

  • flow-php/postgresql - migration lock, a PostgreSQL advisory lock by default
  • flow-php/postgresql - MigrationLockedException when another process runs migrations
  • flow-php/symfony-postgresql-bundle - migrations.lock configuration (advisory, symfony, service, none)
  • flow-php/symfony-postgresql-bundle - flow:migrations:migrate waits for a busy lock
  • flow-php/symfony-postgresql-bundle - optional symfony/lock migration lock

Fixed

Changed

  • flow-php/postgresql - Migrator::executeVersion() refuses an executed (up) or not executed (down) version

Removed

Deprecated

Security

- Migrator takes an advisory lock, throws MigrationLockedException when busy
- executeVersion() refuses an executed (up) or not executed (down) version
- bundle: migrations.lock config (advisory, symfony, service, none)
- bundle: flow:migrations:migrate waits for a busy lock
- bundle: optional symfony/lock adapter
- upgrading.md wording cleanup
@norberttech norberttech added this to the 0.49.0 milestone Nov 24, 2026
@codecov

codecov Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.02956% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.17%. Comparing base (5fc93ca) to head (b0c8e6d).
⚠️ Report is 1 commits behind head on 1.x.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff              @@
##                1.x    #2763      +/-   ##
============================================
+ Coverage     91.15%   91.17%   +0.01%     
- Complexity    32574    32626      +52     
============================================
  Files          2255     2259       +4     
  Lines         94069    94242     +173     
============================================
+ Hits          85752    85921     +169     
- Misses         8317     8321       +4     
Components Coverage Δ
etl 96.28% <ø> (ø)
cli 87.40% <ø> (ø)
lib-array-dot 96.52% <ø> (ø)
lib-azure-sdk 69.50% <ø> (ø)
lib-doctrine-dbal-bulk 94.44% <ø> (ø)
lib-filesystem 89.41% <ø> (ø)
lib-types 94.64% <ø> (ø)
lib-parquet 82.80% <ø> (ø)
lib-parquet-viewer 83.15% <ø> (ø)
lib-snappy 89.86% <ø> (ø)
lib-dremel 0.00% <ø> (ø)
lib-postgresql 90.58% <100.00%> (+0.02%) ⬆️
lib-telemetry 86.85% <ø> (ø)
bridge-filesystem-async-aws 96.85% <ø> (ø)
bridge-filesystem-azure 95.66% <ø> (ø)
bridge-filesystem-sftp 90.29% <ø> (ø)
bridge-monolog-http 96.84% <ø> (ø)
bridge-monolog-telemetry 92.85% <ø> (ø)
bridge-openapi-specification 91.95% <ø> (ø)
symfony-http-foundation 80.76% <ø> (ø)
bridge-symfony-console 98.01% <ø> (ø)
bridge-psr18-telemetry 100.00% <ø> (ø)
bridge-psr3-telemetry 98.95% <ø> (ø)
bridge-psr7-telemetry 100.00% <ø> (ø)
bridge-telemetry-otlp 90.11% <ø> (ø)
bridge-symfony-http-foundation-telemetry 92.85% <ø> (ø)
bridge-symfony-filesystem-bundle 93.19% <ø> (ø)
bridge-symfony-filesystem-cache 98.18% <ø> (ø)
bridge-symfony-postgresql-bundle 93.88% <96.52%> (+0.12%) ⬆️
bridge-symfony-postgresql-cache 94.41% <ø> (ø)
bridge-symfony-postgresql-messenger 98.80% <ø> (ø)
bridge-symfony-postgresql-session 93.65% <ø> (ø)
bridge-symfony-telemetry-bundle 90.77% <ø> (ø)
adapter-chartjs 82.46% <ø> (ø)
adapter-csv 97.68% <ø> (ø)
adapter-doctrine 95.19% <ø> (ø)
adapter-google-sheet 97.53% <ø> (ø)
adapter-http 87.40% <ø> (ø)
adapter-json 90.62% <ø> (ø)
adapter-logger 47.05% <ø> (ø)
adapter-parquet 96.95% <ø> (ø)
adapter-text 97.68% <ø> (ø)
adapter-xml 98.01% <ø> (ø)
adapter-avro 6.25% <ø> (ø)
adapter-excel 96.79% <ø> (ø)
adapter-postgresql 97.38% <ø> (ø)
adapter-seal 90.00% <ø> (ø)
bridge-phpunit-postgresql 75.30% <ø> (ø)
bridge-phpunit-telemetry 87.36% <ø> (ø)
bridge-phpstan-types 0.00% <ø> (ø)
bridge-postgresql-valinor 100.00% <ø> (ø)
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@norberttech
norberttech merged commit 7409e49 into 1.x Nov 24, 2026
22 checks passed
@norberttech
norberttech deleted the migrations-locks branch November 24, 2026 02:18
@github-project-automation github-project-automation Bot moved this from Todo to Done in Roadmap Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant