Skip to content

feature: added --drop-if-exists option to postgresql migrator#2414

Merged
norberttech merged 1 commit into
1.xfrom
migrations-drop-if-exists
Jun 3, 2026
Merged

feature: added --drop-if-exists option to postgresql migrator#2414
norberttech merged 1 commit into
1.xfrom
migrations-drop-if-exists

Conversation

@norberttech
Copy link
Copy Markdown
Member

Resolves: #xxx

Change Log


Added

  • --drop-if-exists option to postgresql migrator

Fixed

Changed

Removed

Deprecated

Security

Set drop_if_exists: true to render every diff-generated DROP with IF EXISTS — useful for convergence migrations
that run against both fresh and legacy databases. Default false, so a missing object fails loudly (drift detection).
Override for a single run with the --drop-if-exists flag.

@norberttech norberttech added this to the 0.39.0 milestone Jun 2, 2026
@norberttech norberttech force-pushed the migrations-drop-if-exists branch from 1dc7a64 to 5677c58 Compare June 3, 2026 10:07
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.88%. Comparing base (087ada9) to head (5677c58).
⚠️ 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    #2414      +/-   ##
============================================
+ Coverage     84.66%   84.88%   +0.21%     
- Complexity    20593    20604      +11     
============================================
  Files          1568     1568              
  Lines         63252    63285      +33     
============================================
+ Hits          53552    53717     +165     
+ Misses         9700     9568     -132     
Components Coverage Δ
etl 89.34% <ø> (+0.99%) ⬆️
cli 89.40% <ø> (ø)
lib-array-dot 81.44% <ø> (ø)
lib-azure-sdk 64.44% <ø> (ø)
lib-doctrine-dbal-bulk 93.61% <ø> (ø)
lib-filesystem 85.03% <ø> (ø)
lib-types 91.98% <ø> (+1.70%) ⬆️
lib-parquet 68.89% <ø> (ø)
lib-parquet-viewer 82.26% <ø> (ø)
lib-snappy 89.38% <ø> (ø)
lib-dremel 0.00% <ø> (ø)
lib-postgresql 88.45% <100.00%> (+0.01%) ⬆️
lib-telemetry 84.31% <ø> (ø)
bridge-filesystem-async-aws 92.74% <ø> (ø)
bridge-filesystem-azure 90.45% <ø> (ø)
bridge-monolog-http 97.86% <ø> (ø)
bridge-monolog-telemetry 94.11% <ø> (ø)
bridge-openapi-specification 92.07% <ø> (ø)
symfony-http-foundation 78.57% <ø> (ø)
bridge-psr18-telemetry 100.00% <ø> (ø)
bridge-psr3-telemetry 97.84% <ø> (ø)
bridge-psr7-telemetry 100.00% <ø> (ø)
bridge-telemetry-otlp 90.50% <ø> (ø)
bridge-symfony-http-foundation-telemetry 89.47% <ø> (ø)
bridge-symfony-filesystem-bundle 91.54% <ø> (ø)
bridge-symfony-filesystem-cache 98.14% <ø> (ø)
bridge-symfony-postgresql-bundle 94.54% <100.00%> (+0.03%) ⬆️
bridge-symfony-postgresql-cache 94.41% <ø> (ø)
bridge-symfony-postgresql-messenger 98.80% <ø> (ø)
bridge-symfony-postgresql-session 93.65% <ø> (ø)
bridge-symfony-telemetry-bundle 76.00% <ø> (ø)
adapter-chartjs 84.05% <ø> (ø)
adapter-csv 91.16% <ø> (ø)
adapter-doctrine 90.79% <ø> (ø)
adapter-elasticsearch 92.07% <ø> (ø)
adapter-google-sheet 99.18% <ø> (ø)
adapter-http 73.04% <ø> (+0.70%) ⬆️
adapter-json 88.63% <ø> (ø)
adapter-logger 50.00% <ø> (ø)
adapter-parquet 81.75% <ø> (ø)
adapter-text 74.13% <ø> (ø)
adapter-xml 83.40% <ø> (ø)
adapter-avro 0.00% <ø> (ø)
adapter-excel 94.21% <ø> (ø)
adapter-postgresql 90.44% <ø> (+0.35%) ⬆️
bridge-phpunit-postgresql 75.30% <ø> (ø)
bridge-phpunit-telemetry 80.09% <ø> (ø)
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 45fa822 into 1.x Jun 3, 2026
39 checks passed
@norberttech norberttech deleted the migrations-drop-if-exists branch June 3, 2026 10:20
@github-project-automation github-project-automation Bot moved this from Todo to Done in Roadmap Jun 3, 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