diff --git a/lib/Config/Migrator.php b/lib/Config/Migrator.php index f810d62a47..c52f3d8cee 100644 --- a/lib/Config/Migrator.php +++ b/lib/Config/Migrator.php @@ -232,7 +232,6 @@ class Migrator { 'engagement_score_updated_at timestamp NULL,', 'last_engagement_at timestamp NULL,', 'woocommerce_synced_at timestamp NULL,', - 'is_woocommerce_synced tinyint(1) NOT NULL DEFAULT 0,', 'PRIMARY KEY (id),', 'UNIQUE KEY email (email),', 'UNIQUE KEY unsubscribe_token (unsubscribe_token),', @@ -241,7 +240,6 @@ class Migrator { 'KEY status_deleted_at (status,deleted_at),', 'KEY last_subscribed_at (last_subscribed_at),', 'KEY engagement_score_updated_at (engagement_score_updated_at),', - 'KEY is_woocommerce_synced (is_woocommerce_synced),', 'KEY link_token (link_token)', ]; return $this->sqlify(__FUNCTION__, $attributes); diff --git a/lib/Entities/SubscriberEntity.php b/lib/Entities/SubscriberEntity.php index eba32c65fa..9e0307ec74 100644 --- a/lib/Entities/SubscriberEntity.php +++ b/lib/Entities/SubscriberEntity.php @@ -150,12 +150,6 @@ class SubscriberEntity { */ private $woocommerceSyncedAt; - /** - * @ORM\Column(type="boolean") - * @var bool - */ - private $isWoocommerceSynced = false; - /** * @ORM\OneToMany(targetEntity="MailPoet\Entities\SubscriberSegmentEntity", mappedBy="subscriber", orphanRemoval=true) * @var Collection @@ -472,14 +466,6 @@ class SubscriberEntity { return $this->woocommerceSyncedAt; } - public function getIsWoocommerceSynced(): bool { - return $this->isWoocommerceSynced; - } - - public function setIsWoocommerceSynced(bool $isWoocommerceSynced): void { - $this->isWoocommerceSynced = $isWoocommerceSynced; - } - /** @ORM\PreFlush */ public function cleanupSubscriberSegments(): void { // Delete old orphan SubscriberSegments to avoid errors on update