Open nikophil opened 3 weeks ago
Hi, I think this is a bug. Just to be sure, you're using dbal 4, right?
Yes I do, but I'm pretty sure the problem did existe with dbal 3 and or orm 2 BTW should I provide a fix for both versions?
If you can, please do.
Bug Report
Summary
(sorry if the the error has already been reported, I've only found https://github.com/doctrine/DoctrineBundle/issues/548 for which a user said it should be reopened)
Given we have an entity which declares a custom
schema
:In PostgreSQL,
doctrine:schema:create
anddoctrine:schema:update
will create a "schema" namedcustom
, next to the defaultpublic
one. Butdoctrine:schema:drop
will not drop this newly created schema.Current behavior
The following is creating an error:
Expected behavior
I'd expect
doctrine:schema:drop
to emit aDROP SCHEMA custom
.Please, let me know if this is a bug or the desired behavior. I'd be happy to provide a fix.