seyfer / kohana-doctrine-migrations
Kohana module to integrate with Doctrine ORM migrations
Installs: 26
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 3
Open Issues: 4
Type:kohana-module
Requires
- php: >=5.4
- doctrine/migrations: 1.0.*@dev
- doctrine/orm: 2.4.*
This package is auto-updated.
Last update: 2024-12-19 22:05:26 UTC
README
Doctrine Migrations module for Kohana 3.3
- Module URL: http://github.com/seyfer/kohana-doctrine-migrations
- Compatible Kohana Version(s): 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