Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
magento2-base
dev
tests
setup-integration
_files
Magento
TestSetupDeclarationModule7
Setup
UpgradeSchema.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\TestSetupDeclarationModule7\Setup
;
8
9
use
Magento\Framework\Setup\InstallSchemaInterface
;
10
use
Magento\Framework\Setup\ModuleContextInterface
;
11
use
Magento\Framework\Setup\SchemaSetupInterface
;
12
use
Magento\Framework\Setup\UpgradeSchemaInterface
;
13
17
class
UpgradeSchema
implements
UpgradeSchemaInterface
18
{
22
public
function
upgrade
(
SchemaSetupInterface
$setup
,
ModuleContextInterface
$context)
23
{
24
$installer
=
$setup
;
25
$installer
->startSetup();
26
27
if
(version_compare($context->
getVersion
(),
'2.0.1'
) < 0) {
28
$installer
29
->getConnection()
30
->modifyColumn(
'test_table'
,
'float'
, [
'type'
=>
'float'
,
'default'
=> 29]);
31
}
32
33
$installer
->endSetup();
34
}
35
}
$installer
$installer
Definition:
configurable_attribute.php:16
Magento\Framework\Setup\ModuleContextInterface\getVersion
getVersion()
Magento\Framework\Setup\ModuleContextInterface
Definition:
ModuleContextInterface.php:13
Magento\TestSetupDeclarationModule7\Setup\UpgradeSchema\upgrade
upgrade(SchemaSetupInterface $setup, ModuleContextInterface $context)
Definition:
UpgradeSchema.php:22
Magento\Framework\Setup\SchemaSetupInterface
Definition:
SchemaSetupInterface.php:13
Magento\Framework\Setup\UpgradeSchemaInterface
Definition:
UpgradeSchemaInterface.php:14
$setup
$setup
Definition:
trigger.php:12
Magento\TestSetupDeclarationModule7\Setup
Magento\Framework\Setup\InstallSchemaInterface
Definition:
InstallSchemaInterface.php:14