vendor/store.shopware.com/ennodigitalproducts/EnnoDigitalProducts.php line 9

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace EnnoDigitalProducts;
  3. use Doctrine\DBAL\Connection;
  4. use Shopware\Core\Framework\Plugin;
  5. use Shopware\Core\Framework\Plugin\Context\UninstallContext;
  6. class EnnoDigitalProducts extends Plugin
  7. {
  8.     public function uninstall(UninstallContext $context): void
  9.     {
  10.         parent::uninstall($context);
  11.         if ($context->keepUserData()) {
  12.             return;
  13.         }
  14.         $connection $this->container->get(Connection::class);
  15.         $connection->executeStatement('DROP TABLE IF EXISTS `enno_digital_product_settings`');
  16.         $connection->executeStatement('DROP TABLE IF EXISTS `enno_download_log`');
  17.         $connection->executeStatement('DROP TABLE IF EXISTS `enno_download_translation`');
  18.         $connection->executeStatement('DROP TABLE IF EXISTS `enno_download`');
  19.         $connection->executeStatement('DROP TABLE IF EXISTS `enno_download_set_product_relations`');
  20.         $connection->executeStatement('DROP TABLE IF EXISTS `enno_download_set_translation`');
  21.         $connection->executeStatement('DROP TABLE IF EXISTS `enno_download_set`');
  22.     }
  23. }