Add index into Table definition

This commit is contained in:
Jeremy Benoist 2016-11-04 08:02:02 +01:00
parent 1e7b04d4ea
commit 7e9c1d65b1
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C

View file

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