seyfer/kohana-doctrine-migrations

There is no license information available for the latest version (dev-master) of this package.

Kohana module to integrate with Doctrine ORM migrations

dev-master 2015-06-10 11:20 UTC

README

Doctrine Migrations module for Kohana 3.3

Usage

Require kohana-doctrine installed. https://github.com/seyfer/kohana-doctrine

Copy doctrine.php and migrations.xml to application/config.

php vendor/kohana/modules/doctrine/bin/doctrine migrations:diff --configuration=application/config/migrations.xml
php vendor/kohana/modules/doctrine/bin/doctrine migrations:status --configuration=application/config/migrations.xml

Description

This module allows for managing database migrations between multiple environments easily by utilizing the Doctrine migrations library.

Requirements & Installation

The Doctrine Migrations module is tested with Doctrine v2.4. You should create a doctrine config file and specify vendor path in your config/doctrine.php file under configuration key

To run from the command line, you will need kohana-doctrine module available at http://github.com/seyfer/kohana-doctrine Remember to add this module after kohana-doctrine in the bootstrap.php After that you will be able to run ./modules/kohana-doctrine/bin/doctrine or copy it to your application root

Additional information about how to create migration classes can be found at http://www.doctrine-project.org/projects/migrations/2.0/docs/reference/en