feat(dump): drop the job table when the plugin is uninstalled
This commit is contained in:
Regular → Executable
+4
-1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user