PHP Class Smile\ElasticsuiteVirtualCategory\Setup\UpgradeData

Author: Aurelien FOUCRET ([email protected])
Inheritance: implements Magento\Framework\Setup\UpgradeDataInterface
Show file Open project: smile-sa/elasticsuite

Public Methods

Method Description
__construct ( Magento\Eav\Setup\EavSetupFactory $eavSetupFactory ) Class Constructor
upgrade ( Magento\Framework\Setup\ModuleDataSetupInterface $setup, Magento\Framework\Setup\ModuleContextInterface $context ) : void Upgrade the module data.

Private Methods

Method Description
updateVirtualCategoryRootTypeToInt ( Magento\Framework\Setup\ModuleDataSetupInterface $setup ) Migration from 1.0.0 to 1.1.0 : - Updating the attribute virtual_category_root from type varchar to type int - Updating the value of the attribute from 'category/13' to '13.

Method Details

__construct() public method

Class Constructor
public __construct ( Magento\Eav\Setup\EavSetupFactory $eavSetupFactory )
$eavSetupFactory Magento\Eav\Setup\EavSetupFactory Eav setup factory.

upgrade() public method

Upgrade the module data.
public upgrade ( Magento\Framework\Setup\ModuleDataSetupInterface $setup, Magento\Framework\Setup\ModuleContextInterface $context ) : void
$setup Magento\Framework\Setup\ModuleDataSetupInterface The setup interface
$context Magento\Framework\Setup\ModuleContextInterface The module Context
return void