custom/static-plugins/MadBodymedCore/src/MadBodymedCore.php line 9

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace MadBodymedCore;
  3. use Shopware\Core\Framework\Plugin;
  4. use Shopware\Core\Framework\Plugin\Context\UninstallContext;
  5. use Shopware\Core\Kernel;
  6. class MadBodymedCore extends Plugin
  7. {
  8.   public function uninstall(UninstallContext $uninstallContext): void
  9.   {
  10.     parent::install($uninstallContext);
  11.     if ($uninstallContext->keepUserData()) {
  12.       return;
  13.     }
  14.     $this->removeMigrations();
  15.     Kernel::getConnection()->executeUpdate(<<<EOL
  16. DELETE FROM `custom_field` WHERE `id` = UNHEX('74319C283FFC4701BD8385200DB7F547');
  17. DELETE FROM `custom_field_set` WHERE `id` = UNHEX('B0983A1CA84A45EEB37E3AAF539AF1EC');
  18. EOL);
  19.   }
  20. }