mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
UpdateCommand don't see Primary Keys in current Oracle database when CONSTRAINT_NAME differs from INDEX_NAME #5368
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 @stoccc on GitHub (Jan 2, 2017).
Originally assigned to: @Ocramius on GitHub.
the UpdateCommand in Doctrine\ORM\Tools\Console\Command\SchemaTool
doesn't see currently defined Primary Keys in tables in Oracle (OCI8) if the name of the Constraint differs from the name of the Index (this always happens if you create on the DB a primary key constraint on a field that has already a unique index or when you perform a full Database Copy throught Oracle SQL developer and then try to execute the UpdateCommand - this was my case).
This bug causes the following SQL statements to be executed for every table in such a condition when executing the UpdateCommand
this is related to https://github.com/doctrine/dbal/pull/889 https://github.com/doctrine/dbal/issues/1234
@Ocramius commented on GitHub (May 20, 2017):
Handled in doctrine/dbal#2686