承接 akrabat/rka-doctrine-migrations-runner 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

  1. Create a migrations folder

  2. Create a migrations.yml file containing:

     name: Doctrine Migrations
     migrations_namespace: Migrations
     table_name: migrations
     migrations_directory: migrations
    
  3. 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',
     );
     ?>
    
  4. Test:

    php vendor/bin/migrations.php status
    

See the documentation2 for the rest.

统计信息

  • 总下载量: 34
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-05-24