From 6a4cdee9289d82a8baf8e9905e9af27b21d90d66 Mon Sep 17 00:00:00 2001 From: Olle Haerstedt Date: Mon, 20 Sep 2021 15:45:20 +0200 Subject: [PATCH] Fixed issue: Remove lime_ prefix from db update --- application/helpers/update/updatedb_helper.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/application/helpers/update/updatedb_helper.php b/application/helpers/update/updatedb_helper.php index 1138ce10d8e..8cd3fdb4c93 100644 --- a/application/helpers/update/updatedb_helper.php +++ b/application/helpers/update/updatedb_helper.php @@ -4944,10 +4944,10 @@ function ($v) { // Apply integrity fix before adding unique constraint. // List of label set ids which contain code duplicates. $lids = $oDB->createCommand( - "SELECT lime_labels.lid AS lid - FROM lime_labels - GROUP BY lime_labels.lid - HAVING COUNT(DISTINCT(lime_labels.code)) < COUNT(lime_labels.id)" + "SELECT {{labels}}.lid AS lid + FROM {{labels}} + GROUP BY {{labels}}.lid + HAVING COUNT(DISTINCT({{labels}}.code)) < COUNT({{labels}}.id)" )->queryAll(); foreach ($lids as $lid) { regenerateLabelCodes400($lid['lid']);