From 9713f9f7801fb53241ae72b427a99522e59cab1f Mon Sep 17 00:00:00 2001 From: Haylan Date: Mon, 14 Sep 2026 22:00:26 +0200 Subject: [PATCH] feat(dump): drop the job table when the plugin is uninstalled --- src/AeonDumpManager.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) mode change 100644 => 100755 src/AeonDumpManager.php diff --git a/src/AeonDumpManager.php b/src/AeonDumpManager.php old mode 100644 new mode 100755 index ca537e3..09ae91b --- a/src/AeonDumpManager.php +++ b/src/AeonDumpManager.php @@ -2,6 +2,7 @@ namespace AeonDumpManager; +use Doctrine\DBAL\Connection; use Shopware\Core\Framework\Plugin; use Shopware\Core\Framework\Plugin\Context\ActivateContext; use Shopware\Core\Framework\Plugin\Context\DeactivateContext; @@ -24,7 +25,9 @@ class AeonDumpManager extends Plugin return; } - // Remove or deactivate the data created by the plugin + /** @var Connection $connection */ + $connection = $this->container->get(Connection::class); + $connection->executeStatement('DROP TABLE IF EXISTS `aeon_dump_manager_job`'); } public function activate(ActivateContext $activateContext): void