Skip to content

Releases: cakephp/migrations

CakePHP Migrations 4.3.1

13 May 15:48
c3eef97
Compare
Choose a tag to compare

What's Changed

  • Handle database with escapable identifiers in name by @jharder in #717
  • Include the current backend in the entry point output by @markstory in #718

New Contributors

Full Changelog: 4.3.0...4.3.1

CakePHP Migrations 4.3.0

03 May 03:24
fa055cc
Compare
Choose a tag to compare

New Backend

As of migrations 4.3. there is a new migrations backend that uses CakePHP's database abstractions and ORM. Longer term this will allow for phinx to be removed as a dependency. Reducing the dependencies of migrations helps keep your applications dependencies smaller. Migrations can also benefit from improvements in the ORM with less lag time as they no longer need to be re-implemented in phinx. Lastly, it streamlines the number of APIs you have to learn. Migrations included APIs that are very different from CakePHPs, and we can now align querying and data manipulation APIs so that you don't have to remember two different APIs depending on the context.

What is the same?

Your migrations shouldn't have to change much to adapt to the new backend. The migrations backend implements all of the phinx interfaces and can run migrations based on phinx classes. If your migrations fail for a reason not outlined below please open an issue.

What is different?

If your migrations are using the AdapterInterface to fetch rows or update rows you will need to update your code. If you use Adapter::query() to execute queries, the return of this method is now Cake\Database\StatementInterface instead. This impacts fetchAll(), and fetch().

Enabling the new backend

The new backend can be enabled through application configuration. Add the following to your config/app.php::

    return [
        // Other configuration.
        'Migrations' => ['backend' => 'builtin'],
    ];

If your migrations have problems running with the builtin backend, removing this configuration option will revert to using phinx.

Summary of pull requests

Full Changelog: 4.2.0...4.3.0

CakePHP Migrations 4.2.0

02 Mar 01:26
2a5f996
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 4.1.0...4.2.0

CakePHP Migrations 4.1.1

11 Nov 03:29
Compare
Choose a tag to compare

Changes

  • Support latest Phinx 0.15.3

CakePHP Migrations 4.1.0

23 Sep 01:20
7659d42
Compare
Choose a tag to compare

This release fixes dependencies after the invalid Phinx 2.0 release was rolled back and Phinx 0.15 released instead.

Along with Phinx support, this fixes and improves index generation that was hidden behind disabled tests. You can find more information on that here: #628.

What's Changed

New Contributors

Full Changelog: 4.0.2...4.1.0

CakePHP Migrations 4.0.2

22 Sep 01:43
56a76dd
Compare
Choose a tag to compare

What's Changed

Full Changelog: 4.0.1...4.0.2

CakePHP Migrations 3.9.0

22 Sep 08:41
58446fd
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 3.8.3...3.9.0

CakePHP Migrations 3.8.3

14 Sep 18:19
5fad3fe
Compare
Choose a tag to compare

What's Changed

Full Changelog: 3.8.2...3.8.3

CakePHP Migrations 4.0.1

10 Sep 04:16
Compare
Choose a tag to compare
  • Update dependencies to stable versions.

Full Changelog: 4.0.0...4.0.1

CakePHP Migrations 4.0.0

10 Sep 03:26
1866242
Compare
Choose a tag to compare

What's Changed

Full Changelog: 3.8.2...4.0.0