Open speller opened 4 months ago
We got the exact same problem. Dont know how to work around it :/
Related to https://github.com/doctrine/dbal/issues/5609 and https://github.com/doctrine/dbal/issues/1110 I think.
I'm having this problem, too. I've been manually removing the line because it causes errors when attempting to roll back to a previous migration.
Bug Report
Summary
I'm using the bundle with Postrgres 16. The database URL is
postgresql://$DB_USER:$DB_PASSWORD@db:5432/$DB_NAME?serverVersion=16.2&charset=utf8
. But on everydoctrine:migrations:diff
it creates migrations like the following:No matter what are other changes, it ALWAYS adds the
$this->addSql('CREATE SCHEMA public');
line to all migrations.How to fix it?