Added index on table creation

This commit is contained in:
Nicolas Lœuillet 2016-12-14 10:11:33 +01:00
parent 74b7c0985d
commit af131cb513
1 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,8 @@ use Wallabag\AnnotationBundle\Entity\Annotation;
* @ORM\Table(
* name="`entry`",
* options={"collate"="utf8mb4_unicode_ci", "charset"="utf8mb4"},
* indexes={@ORM\Index(name="created_at", columns={"created_at"})}
* indexes={@ORM\Index(name="created_at", columns={"created_at"})},
* indexes={@ORM\Index(name="uuid", columns={"uuid"})}
* )
* @ORM\HasLifecycleCallbacks()
* @Hateoas\Relation("self", href = "expr('/api/entries/' ~ object.getId())")