akrabat/rka-doctrine-migrations-runner
最新稳定版本:1.0.3
Composer 安装命令:
composer require akrabat/rka-doctrine-migrations-runner
包简介
Standalone runner for Doctrine Migrations
README 文档
README
This project provides vendor/bin/migrations.php which allows running
docrine/migrations1 without any framework integration.
Installation
$ composer require doctrine/migrations:dev-master
$ composer require akrabat/rka-doctrine-migrations-runner
(We need to explictly require doctrine/migrations as that project hasn't yet published a stable version)
Usage
-
Create a
migrationsfolder -
Create a
migrations.ymlfile containing:name: Doctrine Migrations migrations_namespace: Migrations table_name: migrations migrations_directory: migrations -
Create a migrations-db.php file containing your database connection details:
<?php return array( 'dbname' => 'database', 'user' => 'username', 'password' => 'mypassword', 'host' => 'localhost', 'driver' => 'pdo_mysql', ); ?> -
Test:
php vendor/bin/migrations.php status
See the documentation2 for the rest.
统计信息
- 总下载量: 34
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2015-05-24