From c2b0ebcdbb23a38a31b4d8c9e39f2a2be4cc862b Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sun, 16 Jan 2022 12:31:46 +0100 Subject: Add index on CardMeta key --- src/Model/CardMeta.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Model/CardMeta.php') diff --git a/src/Model/CardMeta.php b/src/Model/CardMeta.php index 9e0f544..a77e339 100644 --- a/src/Model/CardMeta.php +++ b/src/Model/CardMeta.php @@ -8,15 +8,17 @@ use Doctrine\DBAL\Schema\Table; use Doctrine\ORM\Mapping\Entity; use Doctrine\ORM\Mapping\GeneratedValue; use Doctrine\ORM\Mapping\Id; +use Doctrine\ORM\Mapping\Index; use Doctrine\ORM\Mapping\ManyToMany; use Doctrine\ORM\Mapping\ManyToOne; use Doctrine\ORM\PersistentCollection; #[Entity] #[Table(name: 'card_meta')] +#[Index(columns: ['key'])] /** * @Entity - * @Table(name="card_meta") + * @Table(name="card_meta", indexes={@Index(columns={"key"})}) */ class CardMeta { -- cgit v1.2.3