seyfer/kohana-doctrine-migrations

该软件包最新版本(dev-master)没有可用的许可证信息。

Kohana模块,用于与Doctrine ORM迁移集成

安装: 26

依赖: 0

建议: 0

安全: 0

星标: 4

关注者: 1

分支: 3

开放问题: 4

类型:kohana-module

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

README

为Kohana 3.3提供的Doctrine迁移模块

使用方法

需要安装kohana-doctrine。请访问https://github.com/seyfer/kohana-doctrine

将doctrine.php和migrations.xml复制到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

描述

该模块允许利用Doctrine迁移库轻松管理多个环境之间的数据库迁移。

需求和安装

Doctrine Migrations模块与Doctrine v2.4进行了测试。您应该在config/doctrine.php文件中的configuration键下创建一个doctrine配置文件并指定vendor路径。

要从命令行运行,您需要kohana-doctrine模块,该模块位于http://github.com/seyfer/kohana-doctrine。请记住在bootstrap.php中将此模块添加到kohana-doctrine之后。之后,您将能够运行./modules/kohana-doctrine/bin/doctrine或将它复制到应用程序根目录。

有关如何创建迁移类的更多信息,请参阅http://www.doctrine-project.org/projects/migrations/2.0/docs/reference/en