mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
PostgreSQL inconsistent multiple schema creation #6258
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bednic on GitHub (Jun 24, 2019).
Bug Report
Summary
orm:schema-tool:create inconsistent multiple schema creation behavior
Current behavior
Prerequisites: I'm using PostgreSQL and have two schemas, e.g. A and B and clean DB.
Case 1: If non of schemas exist, then doctrine create A but throw error, that B schema doesn't exist.
Case 2: When manually create A and B, then doctrine throw error, that schema A exist
Only possible solution is to create B schema manually and then run create command which create missing schema A and then whole model.
How to reproduce
Expected behavior
I expect that doctrine create all schemas by self, XOR me create all schemas manually and then create database model.
P.S. I found some similar issues, but they solve issue with migrating between schemas, or re-creating/updating shemas, but not this particular case, when I want create whole new database. So maybe it is related to some other projects like DBAL.
@Ocramius commented on GitHub (Jun 24, 2019):
What about
orm:schema-tool:update?Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
On Mon, Jun 24, 2019 at 1:39 PM Tomas Benedikt notifications@github.com
wrote:
@bednic commented on GitHub (Jun 24, 2019):
Same issue, schema A was created, but schema B missing and doctrine throw SLQSTATE exception, that schema B doesn't exist.