A
A
Alexander Vladimirovich2018-09-04 15:28:02
symfony
Alexander Vladimirovich, 2018-09-04 15:28:02

How to adjust index length by field in doctrine via annotations?

Greetings!
I set up indexes through an annotation, the index is not required for the entire field, but only with a length of 3.
How can I set this length?

* @ORM\Table(name="history", indexes={
 *      @ORM\Index(name="path", columns={"path(3)"}),
 *      @ORM\Index(name="favorites", columns={"favorites"})
 *     })

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question