<?php declare(strict_types=1);
namespace Atl\ProductConfigurator;
use Doctrine\DBAL\Connection;
use Shopware\Core\Framework\Plugin;
use Shopware\Core\Framework\Plugin\Context\UninstallContext;
class AtlProductConfigurator extends Plugin
{
public function uninstall(UninstallContext $uninstallContext): void
{
parent::uninstall($uninstallContext);
if ($uninstallContext->keepUserData()) {
return;
}
$connection = $this->container->get(Connection::class);
$connection->executeStatement("DROP TABLE IF EXISTS `atl_product_extension`");
$connection->executeStatement("DROP TABLE IF EXISTS `atl_product_configurator_field_translation`");
$connection->executeStatement("DROP TABLE IF EXISTS `atl_product_configurator_field`");
$connection->executeStatement("DROP TABLE IF EXISTS `atl_product_configurator_translation`");
$connection->executeStatement("DROP TABLE IF EXISTS `atl_product_configurator`");
}
}