Skip to content

Commit

Permalink
create new indexes in the ecommerce table #1391 for magento 2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzaloebiz committed May 19, 2022
1 parent 77bbe28 commit f345281
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Setup/UpgradeSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -546,5 +546,17 @@ public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $con
['store_id','regtype','original_id']
);
}
if (version_compare($context->getVersion(), '102.3.45') < 0) {
$connection->addIndex(
$setup->getTable('mailchimp_sync_ecommerce'),
$connection->getIndexName($setup->getTable('mailchimp_sync_ecommerce'), 'mailchimp_sync_delta', 'index'),
'mailchimp_sync_delta'
);
$connection->addIndex(
$setup->getTable('mailchimp_sync_ecommerce'),
$connection->getIndexName($setup->getTable('mailchimp_sync_ecommerce'), 'mailchimp_sync_modified', 'index'),
'mailchimp_sync_modified'
);
}
}
}

0 comments on commit f345281

Please sign in to comment.