Orm: DDC-3919: Schema creation problem on PostgreSQL

Created on 29 Sep 2015  路  3Comments  路  Source: doctrine/orm

Jira issue originally created by user ruscon:

"doctrine/orm": "2.5.1"

my db already have 2 schemas: public and protected.
I moving a table from the protected schema to the public and:

./bin/console doctrine:schema:update --force
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

  [Doctrine\DBAL\Exception\DriverException]
  An exception occurred while executing 'CREATE SCHEMA public':
  SQLSTATE[42P06]: Duplicate schema: 7 ERROR:  schema "public" already exists

  [Doctrine\DBAL\Driver\PDOException]
  SQLSTATE[42P06]: Duplicate schema: 7 ERROR:  schema "public" already exists

  [PDOException]
  SQLSTATE[42P06]: Duplicate schema: 7 ERROR:  schema "public" already exists
Bug

All 3 comments

Comment created by ruscon:

this bug not in orm

Issue was closed with resolution "Fixed"

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sc0rp10 picture sc0rp10  路  4Comments

doctrinebot picture doctrinebot  路  4Comments

doctrinebot picture doctrinebot  路  3Comments

Inmmelman picture Inmmelman  路  3Comments

weaverryan picture weaverryan  路  3Comments