CREATE SCHEMA test;
CREATE TABLE test.table_name (id INT);
CREATE INDEX idx_1 ON test.table_name (id);
If index would be renamed, generated sql is:
ALTER INDEX idx_1 RENAME TO new_index_name;
But valid sql code should be:
ALTER INDEX test.idx_1 RENAME TO new_index_name;
[GH-532] DBAL-807 [DBAL-807] - Added failing test reproduces a problem.
[GH-533] [DBAL-807] Respect schema when renaming indexes
Artur Eshenbrener Can you please provide more details about your use case so that we can reproduce it better. How do you get the wrong SQL?
I've pushed failing test, reproduces this problem.
A related Github Pull-Request [GH-532] was closed:
Patch supplied in PR: https://github.com/doctrine/dbal/pull/533
A related Github Pull-Request [GH-533] was closed:
Resolved in DBAL-822