DoctrineBundle: Database creation fails (PostgreSQL and dbal 2.5.2)

With dbal 2.5.2 and PostgreSQL (not sure about others), when executing: app/console doctrine:database:create Results in following error:

  [Doctrine\DBAL\Exception\ConnectionException]                                             
  An exception occured in driver: SQLSTATE[08006] [7] FATAL:  database "foo" does not exist 

Configuration is basic, and worked perfectly with dbal v2.4.3, but upon notice that v2.5.2 fixes this issue #402 updated dbal, but came across this error 😦

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 17 (10 by maintainers)

Most upvoted comments

@stof sorry for delayed answer, didn’t have time to fully test it, but specifying server_version or completelly removing mapping_types solves the problem, unfortunatelly, didn’t had time to convert all the enums to proper type definition to test if that would work. Though, this is still a bug, but temporally this workaround works.