PHP Class Smile\ElasticsuiteThesaurus\Setup\UpgradeSchema

Author: Romain Ruaud ([email protected])
Inheritance: implements Magento\Framework\Setup\UpgradeSchemaInterface
Show file Open project: smile-sa/elasticsuite

Public Methods

Method Description
upgrade ( Magento\Framework\Setup\SchemaSetupInterface $setup, Magento\Framework\Setup\ModuleContextInterface $context ) : void Installs DB schema for a module

Private Methods

Method Description
appendIsActiveColumn ( Magento\Framework\Setup\SchemaSetupInterface $setup ) Add an "is_active" column to the Thesaurus table.
createExpandedTermsTable ( Magento\Framework\Setup\SchemaSetupInterface $setup ) Create Relation between Thesaurus and expanded terms (which are also synonyms) link table
createExpansionReferenceTable ( Magento\Framework\Setup\SchemaSetupInterface $setup ) Create Thesaurus/expansion reference terms link table
createThesaurusStoreTable ( Magento\Framework\Setup\SchemaSetupInterface $setup ) Create Thesaurus/store link table
createThesaurusTable ( Magento\Framework\Setup\SchemaSetupInterface $setup ) Create Thesaurus main table

Method Details

upgrade() public method

Installs DB schema for a module
public upgrade ( Magento\Framework\Setup\SchemaSetupInterface $setup, Magento\Framework\Setup\ModuleContextInterface $context ) : void
$setup Magento\Framework\Setup\SchemaSetupInterface Setup
$context Magento\Framework\Setup\ModuleContextInterface Context
return void