]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Added index on table creation
authorNicolas Lœuillet <nicolas@loeuillet.org>
Wed, 14 Dec 2016 09:11:33 +0000 (10:11 +0100)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Fri, 23 Dec 2016 09:26:33 +0000 (10:26 +0100)
src/Wallabag/CoreBundle/Entity/Entry.php

index 3ae5334f3192788a8acc3beda35326df2061c521..8dcc719053667a9358dd093440d1cb2d224476a9 100644 (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())")