| Current Path : /var/www/www.indacotrentino.com/www/app/code/Amasty/CronSchedule/Setup/ |
| Current File : //var/www/www.indacotrentino.com/www/app/code/Amasty/CronSchedule/Setup/Uninstall.php |
<?php
declare(strict_types=1);
/**
* @author Amasty Team
* @copyright Copyright (c) Amasty (https://www.amasty.com)
* @package Cron Schedule for Magento 2 (System)
*/
namespace Amasty\CronSchedule\Setup;
use Magento\Framework\Setup\ModuleContextInterface;
use Magento\Framework\Setup\SchemaSetupInterface;
use Magento\Framework\Setup\UninstallInterface;
class Uninstall implements UninstallInterface
{
private const TABLE_NAMES = [
\Amasty\CronSchedule\Model\Schedule\ResourceModel\Schedule::TABLE_NAME
];
public function uninstall(SchemaSetupInterface $setup, ModuleContextInterface $context)
{
$setup->startSetup();
foreach (self::TABLE_NAMES as $tableName) {
$setup->getConnection()->dropTable($setup->getTable($tableName));
}
$setup->endSetup();
}
}