定制 champs-libres/composer-bundle-migration 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

champs-libres/composer-bundle-migration

最新稳定版本:2.0.0

Composer 安装命令:

composer require champs-libres/composer-bundle-migration

包简介

Move DoctrineMigrations files from installed bundle to root package.

README 文档

README

Migrate Doctrine Migrations files from installed bundles to the root package.

Installation

In your root package :

composer require champs-libres/composer-bundle-migration ~1.0

Add the post-install-cmd and post-update-cmd in your root composer.json :

"scripts": {
        "post-install-cmd": [
            "ComposerBundleMigration\\Composer\\Migrations::synchronizeMigrations"
        ],
        "post-update-cmd": [
            "ComposerBundleMigration\\Composer\\Migrations::synchronizeMigrations"
        ]      
    }

Configure migration directory

In your root package, you may configure the directory where migrations files are copied.

In composer.json:

"extra": {
    "appMigrationsDir": "path/to/my/dir"
}

Default is app/DoctrineMigrations (the default for doctrine-migrations-bundle).

Configure migration source dir

In the installed packages, you may also configure the directory where migrations files are located.

"extra": {
    "migration-source": "path/to/my/source/folder"
}

Default is Resources/migrations.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 5
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: AGPL-3.0
  • 更新时间: 2015-01-29