6 declare(strict_types=1);
32 $this->schemaSetup = $schemaSetup;
40 $this->schemaSetup->startSetup();
41 $setup = $this->schemaSetup;
43 $storeSelect =
$setup->getConnection()->select()->from(
$setup->getTable(
'store'))->where(
'store_id > 0');
44 foreach (
$setup->getConnection()->fetchAll($storeSelect) as
$store) {
45 $indexTable =
$setup->getTable(
'catalog_category_product_index') .
49 if (!
$setup->getConnection()->isTableExists($indexTable)) {
50 $setup->getConnection()->createTable(
51 $setup->getConnection()->createTableByDdl(
52 $setup->getTable(
'catalog_category_product_index'),
57 if (!
$setup->getConnection()->isTableExists($indexTable .
'_replica')) {
58 $setup->getConnection()->createTable(
59 $setup->getConnection()->createTableByDdl(
60 $setup->getTable(
'catalog_category_product_index'),
61 $indexTable .
'_replica' 67 $this->schemaSetup->endSetup();
__construct(SchemaSetupInterface $schemaSetup)