feat(dump): drop the job table when the plugin is uninstalled

This commit is contained in:
2026-09-14 22:00:26 +02:00
parent 3a7bcee096
commit 9713f9f780
Regular → Executable
+4 -1
View File
@@ -2,6 +2,7 @@
namespace AeonDumpManager; namespace AeonDumpManager;
use Doctrine\DBAL\Connection;
use Shopware\Core\Framework\Plugin; use Shopware\Core\Framework\Plugin;
use Shopware\Core\Framework\Plugin\Context\ActivateContext; use Shopware\Core\Framework\Plugin\Context\ActivateContext;
use Shopware\Core\Framework\Plugin\Context\DeactivateContext; use Shopware\Core\Framework\Plugin\Context\DeactivateContext;
@@ -24,7 +25,9 @@ class AeonDumpManager extends Plugin
return; 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 public function activate(ActivateContext $activateContext): void