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