# acymailing/11.0.5/back/Helpers/Update/Patchv11.php

AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress, version 11.0.5. 33 lines.

- Page: https://pluginprobe.com/plugins/acymailing/11.0.5/code/back/Helpers/Update/Patchv11.php
- Raw: https://pluginprobe.com/plugins/acymailing/11.0.5/raw/back/Helpers/Update/Patchv11.php
- Modified: 2026-09-03T09:36:36+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/acymailing/11.0.5/code/back/Helpers/Update/Patchv11.php#L10-L20`.

```php
<?php

namespace AcyMailing\Helpers\Update;

trait Patchv11
{
    private function updateFor1102(): void
    {
        if ($this->isPreviousVersionAtLeast('11.0.2')) {
            return;
        }

        $this->updateQuery('UPDATE #__acym_user_has_list SET `status` = 0 WHERE `status` = -1');
    }

    private function updateFor1105(): void
    {
        if ($this->isPreviousVersionAtLeast('11.0.5')) {
            return;
        }

        $this->updateQuery(
            'CREATE TABLE IF NOT EXISTS `#__acym_mail_stat_detail` (
            `mail_id` INT NOT NULL,
            `detail_type` VARCHAR(20) NOT NULL,
            `detail_key` VARCHAR(100) NOT NULL,
            `number` INT NOT NULL DEFAULT 0,
            PRIMARY KEY (`mail_id`, `detail_type`, `detail_key`)
            )'
        );
    }
}

```
