Your IP : 127.0.0.1
<?php
declare(strict_types=1);
/**
* @author Amasty Team
* @copyright Copyright (c) 2022 Amasty (https://www.amasty.com)
* @package One Step Checkout Core for Magento 2
*/
namespace Amasty\CheckoutCore\Setup;
use Amasty\CheckoutCore\Model\ResourceModel\AdditionalFields;
use Amasty\CheckoutCore\Model\ResourceModel\Fee;
use Amasty\CheckoutCore\Model\ResourceModel\Field;
use Amasty\CheckoutCore\Model\ResourceModel\OrderCustomFields;
use Amasty\CheckoutCore\Model\ResourceModel\QuoteCustomFields;
use Amasty\CheckoutCore\Model\ResourceModel\QuotePasswords;
use Magento\Framework\Setup\ModuleContextInterface;
use Magento\Framework\Setup\SchemaSetupInterface;
use Magento\Framework\Setup\UninstallInterface;
class Uninstall implements UninstallInterface
{
/**
* @param SchemaSetupInterface $installer
* @param ModuleContextInterface $context
*
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function uninstall(SchemaSetupInterface $installer, ModuleContextInterface $context)
{
$installer->startSetup();
$installer->getConnection()->dropTable($installer->getTable(Field::MAIN_TABLE));
$installer->getConnection()->dropTable($installer->getTable(Fee::MAIN_TABLE));
$installer->getConnection()->dropTable($installer->getTable(AdditionalFields::MAIN_TABLE));
$installer->getConnection()->dropTable($installer->getTable(QuoteCustomFields::MAIN_TABLE));
$installer->getConnection()->dropTable($installer->getTable(OrderCustomFields::MAIN_TABLE));
$installer->getConnection()->dropTable($installer->getTable(QuotePasswords::MAIN_TABLE));
$installer->endSetup();
}
}