From 6bcd645d0bdd327d7d255abade42c170becf59f0 Mon Sep 17 00:00:00 2001 From: dkseo Date: Wed, 20 Mar 2019 17:46:11 +0900 Subject: [PATCH] add getTable() - Gets table name (validated by db adapter) by table placeholder --- Setup/UpgradeData.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Setup/UpgradeData.php b/Setup/UpgradeData.php index 3bb5ff1..4b7fd65 100644 --- a/Setup/UpgradeData.php +++ b/Setup/UpgradeData.php @@ -53,7 +53,7 @@ public function upgrade(ModuleDataSetupInterface $setup, ModuleContextInterface /** @noinspection SqlNoDataSourceInspection */ $setup->getConnection()->query(sprintf( "UPDATE IGNORE %s SET %s = REPLACE(%s, '%s', '%s') WHERE %s LIKE '%%%s%%' ESCAPE '|'", - $table, $field, $field, $replacedWidget, $newWidget, $field, $replacedWidget + $setup->getTable($table), $field, $field, $replacedWidget, $newWidget, $field, $replacedWidget )); } }