DDC-3633: Schema creation problem on PostgreSQL #4465

Closed
opened 2026-01-22 14:42:14 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Mar 22, 2015).

Originally assigned to: @deeky666 on GitHub.

Jira issue originally created by user korotovsky:

Schema tool can't create correct schema on empty database in PostgreSQL:

$ php app/console doctrine:schema:create --env=test
ATTENTION: This operation should not be executed in a production environment.

Creating database schema...

[Doctrine\ORM\Tools\ToolsException]
Schema-Tool failed with Error 'An exception occurred while executing 'CREATE SCHEMA public':
SQLSTATE[42P06]: Duplicate schema: 7 ERROR: schema "public" already exists' while executing DDL: CREATE SCHEMA public

Originally created by @doctrinebot on GitHub (Mar 22, 2015). Originally assigned to: @deeky666 on GitHub. Jira issue originally created by user korotovsky: Schema tool can't create correct schema on empty database in PostgreSQL: $ php app/console doctrine:schema:create --env=test ATTENTION: This operation should not be executed in a production environment. Creating database schema... [Doctrine\ORM\Tools\ToolsException] Schema-Tool failed with Error 'An exception occurred while executing 'CREATE SCHEMA public': SQLSTATE[42P06]: Duplicate schema: 7 ERROR: schema "public" already exists' while executing DDL: CREATE SCHEMA public
admin added the Bug label 2026-01-22 14:42:14 +01:00
admin closed this issue 2026-01-22 14:42:14 +01:00
Author
Owner

@doctrinebot commented on GitHub (Mar 22, 2015):

@doctrinebot commented on GitHub (Mar 22, 2015): - is referenced by [DDC-3919: Schema creation problem on PostgreSQL](http://www.doctrine-project.org/jira/browse/DDC-3919)
Author
Owner

@doctrinebot commented on GitHub (Apr 16, 2015):

Issue was closed with resolution "Invalid"

@doctrinebot commented on GitHub (Apr 16, 2015): Issue was closed with resolution "Invalid"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#4465