mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
ORA-01418: specified index does not exist #5050
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 @licarigianluca on GitHub (Mar 16, 2016).
hi,
I have a table and i'm trying to add an index on a foreign key in this way:
the output of the command
doctrine:schema:update --dump-sqltell me that it have to alter the index specified above.And when I run the command
doctrine:schema:update --forcethe database returns me an errorAn exception occurred while executing
ALTER INDEX idx_38c63d8f3506f80c RENAME TO ixfk_operatori_aziende:Why the ORM wants to modify an index that doesn't exists?
And another question.
Where he found the particular index name
idx_38c63d8f3506f80cdespite I looked for it in my project directory and I haven't found it?thanks
@licarigianluca commented on GitHub (Mar 16, 2016):
sorry i have forgot to write information about orm version
@Ocramius commented on GitHub (Mar 16, 2016):
Do you have a way to reproduce this bug in isolation, for example by just creating an empty DB with a table, and then applying these mappings to it via
doctrine:schema:update --dump-sql?@licarigianluca commented on GitHub (Mar 16, 2016):
i have deleted all the project's entities and i leaved only the entiti operatori,
then i have created the table operatori in an empty database with the command
doctrine:schema:update --force. After i add another entity that operatori's foreign keyixfk_operatori_aziendepoints to. It's colled Aziende. running the commandschema:updatei have seen this outputThen i run the command with the argument
--forceand everything goes fine.All these things are very strange.