Linux host2.homegym.sg 4.18.0-553.8.1.el8_10.x86_64 #1 SMP Tue Jul 2 07:26:33 EDT 2024 x86_64
Apache
Server IP : 159.223.38.192 & Your IP : 159.223.38.192
Domains : 20 Domain
User : eachadea
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Lock Shell
Lock File++
Readme
/
home /
eachadea /
.trash /
src /
Setup /
Delete
Unzip
Name
Size
Permission
Date
Action
InstallSchema.php
1.12
KB
-rwxr-xr-x
2022-01-20 19:15
Save
Rename
<?php namespace MagePsycho\DiscountLimit\Setup; use Magento\Framework\Setup\InstallSchemaInterface; use Magento\Framework\Setup\ModuleContextInterface; use Magento\Framework\Setup\SchemaSetupInterface; use Magento\Framework\DB\Ddl\Table; /** * @category MagePsycho * @package MagePsycho_DiscountLimit * @author Raj KB <magepsycho@gmail.com> * @website https://www.magepsycho.com * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) */ class InstallSchema implements InstallSchemaInterface { public function install(SchemaSetupInterface $setup, ModuleContextInterface $context) { $installer = $setup; $installer->startSetup(); $installer->getConnection()->addColumn( $installer->getTable('salesrule'), 'max_discount_amount', [ 'type' => Table::TYPE_DECIMAL, 'length' => '12,4', 'nullable' => false, 'default' => '0.0000', 'comment' => 'Max Discount Amount' ] ); $installer->endSetup(); } }