vendor/store.shopware.com/mindsshoppingcartgoals/src/MindsShoppingCartGoals.php line 10

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