# Issue description
When using PostgreSQL, $this->addSql('CREATE SCHEMA public') is automatically added to all the newly created migration files.
Issue on GitHub (opens new window)
# Enable fix
# Symfony
Register the listener:
// services_dev.yaml
services:
EonX\EasyDoctrine\Listeners\FixPostgreSqlDefaultSchemaListener:
tags:
- { name: doctrine.event_listener, event: postGenerateSchema }