![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/amasty/base/Setup/ |
<?php declare(strict_types=1); /** * @author Amasty Team * @copyright Copyright (c) Amasty (https://www.amasty.com) * @package Magento 2 Base Package */ namespace Amasty\Base\Setup; use Magento\Framework\Setup\ModuleContextInterface; use Magento\Framework\Setup\SchemaSetupInterface; use Magento\Framework\Setup\UninstallInterface; class Uninstall implements UninstallInterface { public function uninstall(SchemaSetupInterface $setup, ModuleContextInterface $context) { $this ->uninstallColumns($setup) ->uninstallConfigData($setup); } private function uninstallColumns(SchemaSetupInterface $setup): self { $connection = $setup->getConnection(); $connection->dropColumn( $setup->getTable('adminnotification_inbox'), 'is_amasty' ); $connection->dropColumn( $setup->getTable('adminnotification_inbox'), 'expiration_date' ); $connection->dropColumn( $setup->getTable('adminnotification_inbox'), 'image_url' ); return $this; } private function uninstallConfigData(SchemaSetupInterface $setup): self { $configTable = $setup->getTable('core_config_data'); $setup->getConnection()->delete($configTable, "`path` LIKE 'amasty_base%'"); return $this; } }