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

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