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