vendor/crehler/size-table/CrehlerSizeTable.php line 9

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Crehler\SizeTable;
  3. use Doctrine\DBAL\Connection;
  4. use Shopware\Core\Framework\Plugin;
  5. use Shopware\Core\Framework\Plugin\Context\UninstallContext;
  6. class CrehlerSizeTable 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->executeUpdate('ALTER TABLE `product` DROP COLUMN `size_table_id`');
  16.     }
  17. }