Skip to content

Commit

Permalink
Fixed issue: Remove lime_ prefix from db update
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Sep 20, 2021
1 parent ff305ed commit 6a4cdee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions application/helpers/update/updatedb_helper.php
Expand Up @@ -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']);
Expand Down

0 comments on commit 6a4cdee

Please sign in to comment.