PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 11.0.5
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v11.0.5
11.1.1 11.1.0 11.0.5 11.0.4 11.0.3 11.0.2 11.0.1 11.0.0 10.11.1 10.11.0 10.10.2 10.10.1 10.10.0 10.9.1 trunk 10.0.0 10.0.1 10.1.0 10.1.1 10.1.2 10.1.3 10.1.4 10.2.0 10.2.1 10.2.2 All 62 releases
acymailing / back / Helpers / Update / Patchv11.php

Patchv11.php in AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress 11.0.5, at back/Helpers/Update/Patchv11.php

33 lines 813 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace AcyMailing\Helpers\Update;
4
5 trait Patchv11
6 {
7 private function updateFor1102(): void
8 {
9 if ($this->isPreviousVersionAtLeast('11.0.2')) {
10 return;
11 }
12
13 $this->updateQuery('UPDATE #__acym_user_has_list SET `status` = 0 WHERE `status` = -1');
14 }
15
16 private function updateFor1105(): void
17 {
18 if ($this->isPreviousVersionAtLeast('11.0.5')) {
19 return;
20 }
21
22 $this->updateQuery(
23 'CREATE TABLE IF NOT EXISTS `#__acym_mail_stat_detail` (
24 `mail_id` INT NOT NULL,
25 `detail_type` VARCHAR(20) NOT NULL,
26 `detail_key` VARCHAR(100) NOT NULL,
27 `number` INT NOT NULL DEFAULT 0,
28 PRIMARY KEY (`mail_id`, `detail_type`, `detail_key`)
29 )'
30 );
31 }
32 }
33