From 897b2fd0886d2ef96c2802c0dd417494b696bd6a Mon Sep 17 00:00:00 2001 From: Slamet Badwi Date: Mon, 27 May 2019 14:48:07 +0700 Subject: [PATCH] Fix error installation on prefixed DB * Error message: Upgrading schema... SQLSTATE[42S02]: Base table or view not found: 1146 Table 'oms_db.dpd_shipment_label' doesn't exist, query was: DESCRIBE `dpd_shipment_label` --- Setup/UpgradeSchema.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Setup/UpgradeSchema.php b/Setup/UpgradeSchema.php index 86d4131..61b2c7a 100644 --- a/Setup/UpgradeSchema.php +++ b/Setup/UpgradeSchema.php @@ -369,7 +369,7 @@ public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $con #16402 if (version_compare($context->getVersion(), '1.1.1') < 0) { - if (!$setup->getConnection()->tableColumnExists('dpd_shipment_label', 'label_path')) { + if (!$setup->getConnection()->tableColumnExists($setup->getTable('dpd_shipment_label'), 'label_path')) { $setup->getConnection()->addColumn($setup->getTable('dpd_shipment_label'), 'label_path', [ 'type' => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT, 'nullable' => true,