cakephp/migrations

Database Migration plugin for CakePHP based on Phinx

Installs: 9 180 586

Dependents: 224

Suggesters: 6

Security: 0

Stars: 137

Watchers: 36

Forks: 116

Open Issues: 37

Type:cakephp-plugin

4.4.2 2024-10-08 14:22 UTC

README

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

Or you can manually add the loading statement in the src/Application.php file of your application:

public function bootstrap(): void
{
    parent::bootstrap();
    $this->addPlugin('Migrations');
}

Additionally, you will need to configure the default database configuration in your config/app.php file.

Documentation

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