Skip to content

Releases: cakephp/migrations

5.2.3

Choose a tag to compare

@dereuromark dereuromark released this 06 Jul 05:28
ab5e25e

What's Changed

Full Changelog: 5.2.2...5.2.3

5.2.2

Choose a tag to compare

@dereuromark dereuromark released this 03 Jul 08:17
46bab41

Fixes

  • Do not auto-increment composite primary key columns in bake migration. Baking a join-table migration with a composite integer primary key (e.g. article_id:integer:primary tag_id:integer:primary) generated autoIncrement on both columns, which MySQL rejects. Now autoIncrement is only emitted for a single integer primary key. (#1095)

Full Changelog: 5.2.1...5.2.2

5.2.1

Choose a tag to compare

@dereuromark dereuromark released this 28 May 17:14
a5f2d90

Fixes

  • Quote the constraint name in the MySQL DROP FOREIGN KEY statement. Names that are not bare identifiers previously produced invalid SQL — whitespace in a name (cakephp/phinx#924) or numeric names auto-assigned by MariaDB 12.x (DROP FOREIGN KEY 1) would fail with a syntax error. The identifier is now quoted via quoteColumnName(), matching the Postgres and SQL Server adapters.

Full Changelog: 5.2.0...5.2.1

5.2.0

Choose a tag to compare

@dereuromark dereuromark released this 17 May 02:52

Improvements

  • Add an --all flag to the migrations status command (#1076)
  • Add citext column type support for PostgreSQL (#1069)
  • Add support for PostgreSQL index access methods: gist, spgist, brin, hash (#1053)

Full Changelog: 5.1.1...5.2.0

Migrations 4.9.7

Choose a tag to compare

@LordSimal LordSimal released this 30 Apr 19:55
7745bb8

This release fixes a problem related to changes introduced in Phinx 0.16.11.

ℹ️ If you are on CakePHP 5.3+ we HIGHLY recommend you upgrade to Migrations v5. Go to https://book.cakephp.org/migrations/5/upgrades/upgrading-from-4-x.html to learn what has changed and what you need to do, to get it working ℹ️

What's Changed

  • pin phinx to 0.16.10 as 0.16.11 contains breaking changes by @LordSimal in #1078

Full Changelog: 4.9.6...4.9.7

Migrations 5.1.1

Choose a tag to compare

@dereuromark dereuromark released this 19 Apr 11:27
d996bd9

Fixes

  • TestSuite\Migrator now treats cake_migrations as a migration metadata table alongside legacy *_phinxlog tables, so the unified migration ledger is reset during test cleanup instead of being left behind. (#1072)

Full Changelog: 5.1.0...5.1.1

Migrations 5.1.0

Choose a tag to compare

@dereuromark dereuromark released this 12 Apr 14:14

Improvements

  • Add support for database views and triggers. (#957)
  • Add migrations reset command. (#1051)
  • Add fluent Table API for check constraints. (#1052)
  • Add ALGORITHM/LOCK support to Index operations. (#1057)
  • Raise PHPStan level to 8 with null safety fixes. (#1044)

Fixes

  • Fix property types related to CakePHP 5.4 changes. (#1067)

Full Changelog: 5.0.4...5.1.0

Migrations 5.0.4

Choose a tag to compare

@dereuromark dereuromark released this 29 Mar 13:04
e9baed9

What's Changed

  • improve error message if a migration contains the old base migration class by @LordSimal in #1059
  • Fix checkSync() to only consider migrations from current context by @dereuromark in #1061

Full Changelog: 5.0.3...5.0.4

Migrations 5.0.3

Choose a tag to compare

@dereuromark dereuromark released this 12 Mar 21:11
c8cfb93

What's Changed

⚠️ Potential Breaking Change

Foreign Key Constraint Naming: When using addForeignKey() without an explicit constraint name, migrations now auto-generates names using the pattern {table}_{columns} instead of letting the database generate names (e.g., articles_ibfk_1 on MySQL). This provides consistent naming across all database adapters but may affect rollbacks in existing migrations that reference constraints by their old names. See the upgrade documentation for details.

Full Changelog: 5.0.2...5.0.3

Migrations 5.0.2

Choose a tag to compare

@dereuromark dereuromark released this 07 Mar 18:41
612764c

What's Changed

Full Changelog: 5.0.1...5.0.2