From f8dfe4e103f6a2f0d0be5e6f9069ab3f3b065672 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Fri, 27 Apr 2018 17:43:32 +0300 Subject: [PATCH] Fix #45. Doctrine partial index recreation on new migration generation fixed. --- .../Bundle/PointToolsBundle/Entity/Telegram/Account.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Skobkin/Bundle/PointToolsBundle/Entity/Telegram/Account.php b/src/Skobkin/Bundle/PointToolsBundle/Entity/Telegram/Account.php index 410b66f..b0a51ca 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/Entity/Telegram/Account.php +++ b/src/Skobkin/Bundle/PointToolsBundle/Entity/Telegram/Account.php @@ -7,8 +7,8 @@ use Skobkin\Bundle\PointToolsBundle\Entity\User; /** * @ORM\Table(name="telegram_accounts", schema="users", indexes={ - * @ORM\Index(name="subscriber_notification_idx", columns={"subscriber_notification"}, options={"where": "subscriber_notification = TRUE"}), - * @ORM\Index(name="rename_notification_idx", columns={"rename_notification"}, options={"where": "rename_notification = TRUE"}), + * @ORM\Index(name="subscriber_notification_idx", columns={"subscriber_notification"}, options={"where": "(subscriber_notification = true)"}), + * @ORM\Index(name="rename_notification_idx", columns={"rename_notification"}, options={"where": "(rename_notification = true)"}), * }) * @ORM\Entity(repositoryClass="Skobkin\Bundle\PointToolsBundle\Repository\Telegram\AccountRepository") * @ORM\HasLifecycleCallbacks()