custom/plugins/PixupWishlistSW6/src/PixupWishlistSW6.php line 9

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Pixup\Wishlist;
  3. use Doctrine\DBAL\Connection;
  4. use Shopware\Core\Framework\Plugin;
  5. use Shopware\Core\Framework\Plugin\Context\UninstallContext;
  6. class PixupWishlistSW6 extends Plugin
  7. {
  8.     public function uninstall(UninstallContext $uninstallContext): void
  9.     {
  10.         parent::uninstall($uninstallContext);
  11.         if ($uninstallContext->keepUserData()) {
  12.             return;
  13.         }
  14.         $connection $this->container->get(Connection::class);
  15.         $connection->executeStatement('DROP TABLE IF EXISTS `pixup_wish_list_birthday`');
  16.         $connection->executeStatement('DROP TABLE IF EXISTS `pixup_wish_list_subscribers`');
  17.         $connection->executeStatement('DROP TABLE IF EXISTS `pixup_wish_list_products`');
  18.         $connection->executeStatement('DROP TABLE IF EXISTS `pixup_wish_list_sales_channels`');
  19.         $connection->executeStatement('DROP TABLE IF EXISTS `pixup_wish_list`');
  20.         $connection->executeStatement('DROP TABLE IF EXISTS `pixup_wish_list_customers`');
  21.     }
  22. }