andreo / multiconn-doctrine-migrations-bundle
Doctrine migrations for multiple connections.
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
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
This simple bundle provides basic doctrine migrations commands for the multiple connections
Config reference with default values
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
Commands
Example for foo
connection name
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