sserbin/doctrine-migrations2-upgrade
Composer 安装命令:
composer require sserbin/doctrine-migrations2-upgrade
包简介
Convert doctrine migrations files when upgrading from 1.x to 2.x
README 文档
README
Intro
Doctrine migrations 2.0 introduced a number of BC breaks forcing users migrating from 1.x to adjust all of their previous migrations. This package aims to automate upgrading from 1.x to 2.0 by doing automatic code adjustments for your migration files.
The following bc breaks are covered:
- exception class renames
- main namespace rename
- migration classes return type signature fix (for
up(),down(),preUp(),postUp(),preDown(),postDown(),getDescription(),isTransactional())
Installation
composer require --dev sserbin/doctrine-migrations2-upgrade
# or globally
composer global require sserbin/doctrine-migrations2-upgrade
Usage
vendor/bin/migrations-upgrade path/to/migrations --dry-run
# or if installed globally (assuming global composer is in $PATH)
migrations-upgrade path/to/migrations --dry-run
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-02-01