cakephp/migrations

Database Migration plugin for CakePHP 3.0 based on Phinx

Installs: 1 896 956

Dependents: 137

Suggesters: 2

Stars: 87

Watchers: 44

Forks: 75

Open Issues: 41

Type:cakephp-plugin

2.0.0 2018-06-22 13:22 UTC

README

Software License Build Status Coverage Status Total Downloads

This is a Database Migrations system for CakePHP 3.

The plugin consists of a CakePHP shell wrapper for the phinx migrations library.

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()
{
    parent::bootstrap();
    $this->addPlugin('Migrations');
}

Prior to 3.6.0

Plugin::load('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.