Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySQL: Create indexes with columns length #2368

Closed
DeepDiver1975 opened this issue Apr 18, 2016 · 3 comments
Closed

MySQL: Create indexes with columns length #2368

DeepDiver1975 opened this issue Apr 18, 2016 · 3 comments

Comments

@DeepDiver1975
Copy link
Contributor

With MySQL (and other DBMS as well ❓) is is possible to define the column length to be used within an index

CREATE INDEX part_of_name ON customer (name(10));

Is there a way to respect this with the schema classes when generating the sql statements?

@Jean85
Copy link

Jean85 commented Apr 22, 2016

Documentation refers an option array for the @Index annotation, but I don't know if lenght is supported...

http://doctrine-orm.readthedocs.org/projects/doctrine-orm/en/latest/reference/annotations-reference.html#annref-index

@morozov
Copy link
Member

morozov commented Nov 8, 2018

Fixed by #2412.

@morozov morozov closed this as completed Nov 8, 2018
@github-actions
Copy link

github-actions bot commented Aug 1, 2022

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants