Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

cakephp/migrations

Open more actions menu

Repository files navigation

Migrations plugin for CakePHP

CI Coverage Status Software License Total Downloads

This is a Database Migrations system for CakePHP.

The plugin consists of a CakePHP CLI wrapper for the Phinx migrations library.

This branch is for use with CakePHP 5.x. See version map for details.

Installation

You can install this plugin into your CakePHP application using Composer.

Run the following command

composer require cakephp/migrations

Configuration

You can load the plugin using the shell command:

bin/cake plugin load Migrations --only-cli

If you are using the PendingMigrations middleware, use:

bin/cake plugin load Migrations

Enabling the builtin backend

In a future release, migrations will be switching to a new backend based on the CakePHP ORM. We're aiming to be compatible with as many existing migrations as possible, and could use your feedback. Enable the new backend with:

// in app/config/app_local.php
$config = [
    // Other configuration
    'Migrations' => ['backend' => 'builtin'],
];

Documentation

Full documentation of the plugin can be found on the CakePHP Cookbook.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.