[PR #7229] Added UNIQUE INDEX to generated SQL schema #10381

Closed
opened 2026-01-22 16:07:21 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/7229

State: closed
Merged: Yes


When I tried the example code, I got this unique index too (Symfony 4, Doctrine 2.6).

Plus my ALTER TABLE statement was a little different from the one in the docs:

ALTER TABLE cart ADD CONSTRAINT FK_BA388B79395C3F3 FOREIGN KEY (customer_id) REFERENCES customer (id)
Should I change that too?

**Original Pull Request:** https://github.com/doctrine/orm/pull/7229 **State:** closed **Merged:** Yes --- When I tried the example code, I got this unique index too (Symfony 4, Doctrine 2.6). Plus my `ALTER TABLE` statement was a little different from the one in the docs: > ALTER TABLE cart ADD CONSTRAINT FK_BA388B79395C3F3 FOREIGN KEY (customer_id) REFERENCES customer (id) Should I change that too?
admin added the pull-request label 2026-01-22 16:07:21 +01:00
admin closed this issue 2026-01-22 16:07:21 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#10381