<?php declare(strict_types=1);
namespace MadBodymedCore;
use Shopware\Core\Framework\Plugin;
use Shopware\Core\Framework\Plugin\Context\UninstallContext;
use Shopware\Core\Kernel;
class MadBodymedCore extends Plugin
{
public function uninstall(UninstallContext $uninstallContext): void
{
parent::install($uninstallContext);
if ($uninstallContext->keepUserData()) {
return;
}
$this->removeMigrations();
Kernel::getConnection()->executeUpdate(<<<EOL
DELETE FROM `custom_field` WHERE `id` = UNHEX('74319C283FFC4701BD8385200DB7F547');
DELETE FROM `custom_field_set` WHERE `id` = UNHEX('B0983A1CA84A45EEB37E3AAF539AF1EC');
EOL);
}
}