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