# 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\EasyCore\Doctrine\Events\FixPostgreSqlDefaultSchemaListener:
        tags:
            - { name: doctrine.event_listener, event: postGenerateSchema }