]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Entity/Tag.php
Add `tag_label` & `config_feed_token` index
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Entity / Tag.php
index 95c47bbd08a379aa2f95d1ec61f2102c221909b8..3ccb20a5c57012cd848df8f705f3bb1f644448f5 100644 (file)
@@ -16,6 +16,9 @@ use JMS\Serializer\Annotation\XmlRoot;
  * @ORM\Table(
  *     name="`tag`",
  *     options={"collate"="utf8mb4_bin", "charset"="utf8mb4"},
+ *     indexes={
+ *         @ORM\Index(name="tag_label", columns={"label"}, options={"lengths"={255}}),
+ *     }
  * )
  * @ORM\Entity(repositoryClass="Wallabag\CoreBundle\Repository\TagRepository")
  * @ExclusionPolicy("all")