maximaster/doctrine-migration-comparators
最新稳定版本:v1.0.0
Composer 安装命令:
composer require maximaster/doctrine-migration-comparators
包简介
Comparator to sort migrations by their namespace in the order of regex-match list.
README 文档
README
composer require maximaster/doctrine-migration-comparators
NumericComparator
Compares numeric parts of versons as numbers.
MatchComparator
Comparator that prioritize versions which matches first on list of regexps.
You can use other comparator as fallback in case migrations have the same
regexp matched. For example: the library's NumericComparator or
softspring/doctrine-migrations-version-comparator
Example
config/packages/doctrine_migrations.yaml
doctrine_migrations: services: Doctrine\Migrations\Version\Comparator: Maximaster\DoctrineMigrationComparators\Comparator\MatchComparator
services.yaml
Maximaster\DoctrineMigrationComparators\Comparator\MatchComparator: arguments: - - ~MyProject\Process~ - ~MyProject\Tests~ - '@Maximaster\DoctrineMigrationComparators\Comparator\NumericComparator'
MyProject\Process migrations would be executed first, then MyProject\Tests.
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-08-30