andreo/eventsauce-migration-generator
最新稳定版本:3.2
Composer 安装命令:
composer require andreo/eventsauce-migration-generator
包简介
This component generates doctrine migrations per aggregate.
README 文档
README
Command to generate doctrine migrations per aggregate
Installation
composer require andreo/eventsauce-migration-generator
Previous versions doc
Requirements
- PHP >=8.2
- Symfony console ^6.0
Config doctrine migrations
In the first step, configure the doctrine migrations package
Usage
use Andreo\EventSauce\Doctrine\Migration\Command\GenerateDoctrineMigrationForEventSauceCommand; new GenerateDoctrineMigrationForEventSauceCommand( dependencyFactory: $dependencyFactory, // instance of Doctrine\Migrations\DependencyFactory );
Change table name suffix
use Andreo\EventSauce\Doctrine\Migration\Command\GenerateDoctrineMigrationForEventSauceCommand; use Andreo\EventSauce\Doctrine\Migration\Schema\TableNameSuffix; new GenerateDoctrineMigrationForEventSauceCommand( dependencyFactory: $dependencyFactory, tableNameSuffix: new TableNameSuffix(event: 'message_store') );
Generate command
andreo:eventsauce:doctrine-migrations:generate
Command options
prefix table name
- required
- string
Generate migration with foo prefix
php bin/console andreo:eventsauce:doctrine-migrations:generate foo
--schema=all
- optional
- string[]
- available values: event, outbox, snapshot, all
- default value: all
Generate migration for given schemas
php bin/console andreo:eventsauce:doctrine-migrations:generate foo --schema=event --schema=snapshot
--uuid-type=binary
- optional
- one of: binary, string
- default value: binary
统计信息
- 总下载量: 5.49k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 1
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2022-04-24