You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All the generated down() methods start with a "CREATE SCHEMA public" line.
⚠️ This bug exists since 2015 (!!!). Previous topic is #1110 which is closed for no reason (no fix has been done).
Current behaviour
console doctrine:migration:diff generates:
/** * Auto-generated Migration: Please modify to your needs! */finalclassVersion20231220030603extendsAbstractMigration
{
publicfunctiongetDescription(): string
{
return'';
}
publicfunctionup(Schema$schema): void
{
// this up() migration is auto-generated, please modify it to your needs
}
publicfunctiondown(Schema$schema): void
{
// this down() migration is auto-generated, please modify it to your needs$this->addSql('CREATE SCHEMA public');
}
}
How to reproduce
Just use PostgreSQL with public schema (I suppose it is sufficient).
I have this:
Expected behaviour
It should not add "CREATE SCHEMA public" line.
The text was updated successfully, but these errors were encountered:
Hey @Arkemlar , the "How to reproduce" section is supposed to be filled with code allowing to reproduce the issue without any extra software (such as doctrine/migrations or doctrine/orm). Can you maybe write a DBAL test that exhibits the issue?
Bug Report
With PostgreSQL
Summary
All the generated down() methods start with a "CREATE SCHEMA public" line.
Current behaviour
console doctrine:migration:diff
generates:How to reproduce
Just use PostgreSQL with public schema (I suppose it is sufficient).
I have this:
Expected behaviour
It should not add "CREATE SCHEMA public" line.
The text was updated successfully, but these errors were encountered: