Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
UpgradeData.php
Go to the documentation of this file.
1 <?php
7 
11 
16 class UpgradeData implements UpgradeDataInterface
17 {
22  {
23  $adapter = $setup->getConnection();
24  $setup->startSetup();
25 
26  if (version_compare($context->getVersion(), '2.0.0') < 0) {
27  $adapter->insertArray('reference_table', ['bigint_without_padding'], [6, 12, 7]);
28  }
29 
30  $setup->endSetup();
31  }
32 }
$adapter
Definition: webapi_user.php:16
upgrade(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
Definition: UpgradeData.php:21
$setup
Definition: trigger.php:12