From: Nicolas LÅ“uillet Date: Wed, 14 Dec 2016 09:11:33 +0000 (+0100) Subject: Added index on table creation X-Git-Tag: 2.2.0~3^2~16^2~3 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;ds=sidebyside;h=af131cb513584a2bbc992dfcaa756a5b425dbe50;p=github%2Fwallabag%2Fwallabag.git Added index on table creation --- diff --git a/src/Wallabag/CoreBundle/Entity/Entry.php b/src/Wallabag/CoreBundle/Entity/Entry.php index 3ae5334f..8dcc7190 100644 --- a/src/Wallabag/CoreBundle/Entity/Entry.php +++ b/src/Wallabag/CoreBundle/Entity/Entry.php @@ -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())")