Remove the column is_woocommerce_synced

[MAILPOET-3954]
This commit is contained in:
Jan Lysý
2021-11-23 17:55:05 +01:00
committed by Veljko V
parent a78e97d349
commit 00f4913739
2 changed files with 0 additions and 16 deletions

View File

@@ -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);

View File

@@ -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<int, SubscriberSegmentEntity>
@@ -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