Skip to content

cakephp/migrations

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a937243 · Nov 5, 2024
Jul 24, 2024
Aug 8, 2024
Nov 5, 2024
Nov 2, 2024
Nov 5, 2024
Nov 5, 2024
Jan 19, 2023
Apr 9, 2019
Sep 22, 2023
Oct 17, 2017
Sep 16, 2023
Nov 13, 2022
Nov 3, 2023
Aug 9, 2024
Sep 16, 2023
Oct 5, 2024
Mar 2, 2024
Aug 8, 2024
Mar 11, 2024
Oct 28, 2024
May 2, 2024

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

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.