diff options
author | Daniel Weipert <code@drogueronin.de> | 2022-01-16 12:31:46 +0100 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2022-01-16 12:31:46 +0100 |
commit | c2b0ebcdbb23a38a31b4d8c9e39f2a2be4cc862b (patch) | |
tree | dc0dbc9f033262b363b280b3bd996b5faaef80c7 /src/Model | |
parent | 8d58c7de92c75e826a8399ec7914b463f8916dcd (diff) |
Add index on CardMeta key
Diffstat (limited to 'src/Model')
-rw-r--r-- | src/Model/CardMeta.php | 4 |
1 files changed, 3 insertions, 1 deletions
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 { |