Skip to content

Commit 3e43287

Browse files
author
Dmytro Voskoboinikov
committed
Merge branch '2.2.1-develop' into PR-bugfixes
2 parents 8b78b47 + f66312d commit 3e43287

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/code/Magento/Quote/Setup/UpgradeSchema.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,17 @@ public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $con
4848
}
4949
//drop foreign key for single DB case
5050
if (version_compare($context->getVersion(), '2.0.3', '<')
51-
&& $setup->tableExists($setup->getTable('quote_item'))
51+
&& $setup->tableExists($setup->getTable('quote_item', self::$connectionName))
5252
) {
53-
$setup->getConnection()->dropForeignKey(
54-
$setup->getTable('quote_item'),
53+
$setup->getConnection(self::$connectionName)->dropForeignKey(
54+
$setup->getTable('quote_item', self::$connectionName),
5555
$setup->getFkName('quote_item', 'product_id', 'catalog_product_entity', 'entity_id')
5656
);
5757
}
5858
if (version_compare($context->getVersion(), '2.0.5', '<')) {
59-
$connection = $setup->getConnection();
59+
$connection = $setup->getConnection(self::$connectionName);
6060
$connection->modifyColumn(
61-
$setup->getTable('quote_address'),
61+
$setup->getTable('quote_address', self::$connectionName),
6262
'shipping_method',
6363
[
6464
'type' => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,

0 commit comments

Comments
 (0)