<?php declare(strict_types=1);
namespace MindsShoppingCartGoals;
use Doctrine\DBAL\Connection;
use Shopware\Core\Framework\Plugin;
use Shopware\Core\Framework\Plugin\Context\UninstallContext;
use Shopware\Core\Framework\Plugin\Context\UpdateContext;
class MindsShoppingCartGoals extends Plugin
{
public function uninstall(UninstallContext $context): void
{
parent::uninstall($context);
if ($context->keepUserData()) {
return;
}
$connection = $this->container->get(Connection::class);
$connection->executeUpdate('DROP TABLE IF EXISTS `m28_scg_free_product`');
$connection->executeUpdate('DROP TABLE IF EXISTS `m28_scg_free_product_translation`');
}
}