programmatically / doctrine-postgres-schema-extra-bundle
1.0.0
2024-11-25 17:18 UTC
Requires
- php: ^8.3
- doctrine/dbal: ^3 || ^4
- doctrine/orm: ^3.3
- symfony/config: ^7.1
- symfony/dependency-injection: ^7.1
- symfony/http-kernel: ^7.1
Requires (Dev)
- phpstan/phpstan: ^2.0
- phpstan/phpstan-symfony: ^2.0
README
A Symfony bundle to make working with Postgres easier. Removes the annoying schema change in migrations, as well as provide a way to ignore manually created indices from migrations
Installation
composer require programmatically/doctrine-postgres-schema-extra-bundle
Add configuration:
# config/packages/doctrine.yaml doctrine: dbal: platform_service: 'Programmatically\DoctrinePostgresSchemaExtraBundle\Doctrine\CustomPostgreSQLPlatformService' schema_manager_factory: 'doctrine.dbal.default_schema_manager_factory'
To ignore indices (optional), add the following configuration:
# config/packages/doctrine_postgres_schema_extra.yaml doctrine_postgres_schema_extra: ignored_index: - name of the index
Contributions
Contributions are welcome! Please submit issues and pull requests to the GitHub repository.