Skip to content

v12.0.2 - Laravel 12 compatibility with Doctrine DBAL 4

Latest

Choose a tag to compare

@oscarafdev oscarafdev released this 21 Apr 16:58
· 2 commits to master since this release

This release fixes Laravel 12 compatibility by aligning migrations-generator with the current Carbon 3 and Doctrine DBAL 4 ecosystem.

What's changed

  • Updated the Laravel 12 line to require doctrine/dbal:^4.0
  • Added runtime compatibility for both DBAL schema manager APIs:
    • createSchemaManager() for DBAL 4
    • getSchemaManager() fallback for older implementations
  • Updated compatibility documentation for the 12.x line
  • Added a focused regression test for schema manager selection

Why this release matters

Laravel 12 typically runs with Carbon 3, which brings in carbonphp/carbon-doctrine-types:^3, and that dependency expects Doctrine DBAL 4.
Previously, migrations-generator still required DBAL 3 on the 12.x line, which caused an ecosystem mismatch.

This release resolves that conflict and improves compatibility for Laravel 12 projects, including database migration scenarios such as MariaDB to PostgreSQL.