![]() The provided callable must return the service to be passed to the DependencyFactory. ![]() The node factories is similar to services, with the difference that it accepts only callables.The services node allows you to provide custom services to the underlying DependencyFactory part of doctrine/migrations.# enable_profiler: false services: # Custom migration sorting service id 'Doctrine\Migrations\Version\Comparator' : ~ # Custom migration classes factory 'Doctrine\Migrations\Version\MigrationFactory' : ~ factories: # Custom migration sorting service id via callables (MåallableFactory must be a callable) 'Doctrine\Migrations\Version\Comparator' : 'MåallableFactory' transactional: true # Whether or not to enable the profiler collector to calculate and visualize migration status. check_database_platform: true # Whether or not to wrap migrations in a single transaction. all_or_nothing: false # Adds an extra check in the generated migrations to ensure that is executed on the same database type. em: default storage: # Default (SQL table) metadata storage configuration table_storage: table_name: 'doctrine_migration_versions' version_column_name: 'version' version_column_length: 192 executed_at_column_name: 'executed_at' # Possible values: "BY_YEAR", "BY_YEAR_AND_MONTH", false organize_migrations: false # Path to your custom migrations template custom_template: ~ # Run all migrations in a transaction. 57 # config/packages/doctrine_migrations.yaml doctrine_migrations: # List of namespace/path pairs to search for migrations, at least one required migrations_paths: 'App\Migrations' : '%kernel.project_dir%/src/App' 'AnotherApp\Migrations' : '/path/to/other/migrations' 'SomeBundle\Migrations' : # List of additional migration classes to be loaded, optional migrations: - 'App\Migrations\Version123' - 'App\Migrations\Version123' # Connection to use for the migrations connection: default # Entity manager to use for migrations.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |