1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-07-27 17:28:39 +00:00

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

View file

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