-
-
Notifications
You must be signed in to change notification settings - Fork 455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doctrine:schema:drop does not drop schema in Postgres #548
Comments
@AlanEdwardScott Can you paste a copy of your configuration ? Thanks |
|
I am a little bit a loss. |
This is PostgreSQL. A single database can have multiple schema. All three
|
Can you write a unittest to reproduce this error? Also i think that dbal may be a better place to have this talk. |
@kimhemsoe |
i am having the same problem @AlanEdwardScott how did you solve it? |
This issue should be reopened. I also did --dump-sql and it is not dropping the schema, it does drop everything inside but not the schema so doing this manually: DROP SCHEMA canary; |
I've prepared the following simple wrapper script while developing my database with Doctrine annotations:
However, I notice that when
doctrine:schema:drop
is run, there are no SQL commands generated to drop the schema in my Postgres database. The results of mydoctrine:schema:drop --dump-sql
include:As you can see, there are no SQL statements for dropping the schema. And yet,
doctrine:schema:create --dump-sql
begins with the following:Is it possible to update the
doctrine:schema:drop
command to include generation of statements to drop created schema when using Postgres?The text was updated successfully, but these errors were encountered: