cakephp/migrations
Database Migration plugin for CakePHP
5.2.6
13M downloads/mo
#1406 most downloaded on Packagist
cakephp/migrations
What this package is like to depend on
Last release 25 days ago
29 Jul 2026
Ships fairly regularly
a new release about every 2 weeks
Rarely documented
notes for 10 of 114 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
118 releases · first in 2015
26 releases in the last 12 months
see the full history below
Release timeline
118 releases · Mar 2015 to Jul 2026Releases
latest 60 of 118-
5.2.629 Jul 2026Release notes
Open source →What's Changed
- Add command descriptions to migration commands by @markstory in #1109
Full Changelog: 5.2.5...5.2.6
-
5.2.527 Jul 2026Release notes
Open source →What's Changed
- Track the plugin of executed seeds in cake_seeds by @dereuromark in #1107
Full Changelog: 5.2.4...5.2.5
-
5.2.417 Jul 2026Release notes
Open source →What's Changed
- Make the database adapter available inside shouldExecute() by @dereuromark in #1100
- Keep ON UPDATE clause when baking migrations by @jamisonbryant in #1103
Full Changelog: 5.2.3...5.2.4
-
5.2.305 Jul 2026Release notes
Open source →What's Changed
- Auto-generate check constraint name when name is empty by @dereuromark in #1098
Full Changelog: 5.2.2...5.2.3
-
5.2.203 Jul 2026Release notes
Open source →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) generatedautoIncrementon both columns, which MySQL rejects. NowautoIncrementis only emitted for a single integer primary key. (#1095)
Full Changelog: 5.2.1...5.2.2
- Do not auto-increment composite primary key columns in bake migration. Baking a join-table migration with a composite integer primary key (e.g.
-
5.2.128 May 2026Release notes
Open source →Fixes
- Quote the constraint name in the MySQL
DROP FOREIGN KEYstatement. 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 viaquoteColumnName(), matching the Postgres and SQL Server adapters.
Full Changelog: 5.2.0...5.2.1
- Quote the constraint name in the MySQL
-
5.2.013 May 2026Release notes
Open source →Improvements
- Add an
--allflag to themigrations statuscommand (#1076) - Add
citextcolumn 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
- Add an
-
5.1.119 Apr 2026Release notes
Open source →Fixes
TestSuite\Migratornow treatscake_migrationsas a migration metadata table alongside legacy*_phinxlogtables, so the unified migration ledger is reset during test cleanup instead of being left behind. (#1072)
Full Changelog: 5.1.0...5.1.1
-
5.1.012 Apr 2026Release notes
Open source →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
-
5.0.429 Mar 2026Nothing published for this version
-
5.0.312 Mar 2026Nothing published for this version
-
5.0.207 Mar 2026Nothing published for this version
-
5.0.112 Feb 2026Nothing published for this version
-
5.0.021 Jan 2026Nothing published for this version
-
4.9.730 Apr 2026Release notes
Open source →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
-
4.9.624 Feb 2026Nothing published for this version
-
4.9.521 Jan 2026Nothing published for this version
-
4.9.418 Jan 2026Nothing published for this version
-
4.9.308 Jan 2026Nothing published for this version
-
4.9.215 Dec 2025Nothing published for this version
-
4.9.103 Dec 2025Nothing published for this version
-
4.9.022 Nov 2025Nothing published for this version
-
4.8.219 Oct 2025Nothing published for this version
-
4.8.110 Oct 2025Nothing published for this version
-
4.8.005 Oct 2025Nothing published for this version
-
4.7.201 Sep 2025Nothing published for this version
-
4.7.104 Aug 2025Nothing published for this version
-
4.7.004 Aug 2025Nothing published for this version
-
4.6.622 Jul 2025Nothing published for this version
-
4.6.518 Jul 2025Nothing published for this version
-
4.6.420 Apr 2025Nothing published for this version
-
4.6.307 Apr 2025Nothing published for this version
-
4.6.220 Mar 2025Nothing published for this version
-
4.6.108 Mar 2025Nothing published for this version
-
4.6.001 Mar 2025Nothing published for this version
-
4.5.116 Jan 2025Nothing published for this version
-
4.5.024 Nov 2024Nothing published for this version
-
4.4.208 Oct 2024Nothing published for this version
-
4.4.116 Sep 2024Nothing published for this version
-
4.4.021 Aug 2024Nothing published for this version
-
4.3.230 Jul 2024Nothing published for this version
-
4.3.113 May 2024Nothing published for this version
-
4.3.003 May 2024Nothing published for this version
-
4.2.020 Feb 2024Nothing published for this version
-
4.1.111 Nov 2023Nothing published for this version
-
4.1.023 Sep 2023Nothing published for this version
-
4.0.222 Sep 2023Nothing published for this version
-
4.0.110 Sep 2023Nothing published for this version
-
4.0.006 Sep 2023Nothing published for this version
-
3.9.022 Sep 2023Nothing published for this version
-
3.8.314 Sep 2023Nothing published for this version
-
3.8.212 Jun 2023Nothing published for this version
-
3.8.104 May 2023Nothing published for this version
-
3.8.022 Mar 2023Nothing published for this version
-
3.7.212 Jan 2023Nothing published for this version
-
3.7.110 Dec 2022Nothing published for this version
-
3.7.009 Dec 2022Nothing published for this version
-
3.6.118 Nov 2022Nothing published for this version
-
3.6.014 Oct 2022Nothing published for this version
-
3.5.325 Sep 2022Nothing published for this version