address reference: add index for refid

This commit is contained in:
2021-12-16 22:41:37 +01:00
parent cdc335372f
commit 773aee5534
3 changed files with 37 additions and 1 deletions

View File

@@ -17,7 +17,9 @@ use Symfony\Component\Serializer\Annotation\Groups;
/**
* @ORM\Entity
* @ORM\Table(name="chill_main_address_reference")
* @ORM\Table(name="chill_main_address_reference", indexes={
* @ORM\Index(name="address_refid", columns={"refId"}, options={"where": "refid != ''"})
* })
* @ORM\HasLifecycleCallbacks
*/
class AddressReference