andreo / multiconn-doctrine-migrations-bundle
适用于多个连接的Doctrine迁移。
1.0.1
2022-11-23 17:56 UTC
Requires
- php: ^8.1
- doctrine/migrations: ^3.5
- eventsauce/eventsauce: ^2.0
- symfony/config: ^6.0
- symfony/dependency-injection: ^6.0
- symfony/http-kernel: ^6.0
Requires (Dev)
- matthiasnoback/symfony-dependency-injection-test: ^4.3
- phpstan/phpstan: ^1.7
- phpunit/phpunit: ^9.4
- roave/security-advisories: dev-latest
README
这个简单的包提供了为多个连接的基本Doctrine迁移命令
带有默认值的配置参考
andreo_multi_conn_doctrine_migrations: table_storage: table_name: doctrine_migration_versions version_column_name: version version_column_length: 1024 executed_at_column_name: executed_at execution_time_column_name: execution_time connections: foo: # doctrine connection name migrations_paths: 'Migrations\Foo': '%kernel.project_dir%/migrations/foo' all_or_nothing: false transactional: true check_database_platform: true dependency_factory_alias: null organize_migrations: none # one of: none, year, year_and_month
命令
以 foo
连接名为例
bin/console andreo:multi-conn-doctrine-migrations:generate:foo # generate empty migrations bin/console andreo:multi-conn-doctrine-migrations:migrate:foo # migrate bin/console andreo:multi-conn-doctrine-migrations:execute:foo # execute one migration