From 84eb72a50634a2cba28dc2c234e81f0fe2e81308 Mon Sep 17 00:00:00 2001 From: louis Date: Mon, 29 Sep 2025 16:41:15 +0200 Subject: [PATCH] + adding prefix to parent_id & threads re-building avoiding mysql error --- src/Api/Controller/RebuildParentIdsController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Api/Controller/RebuildParentIdsController.php b/src/Api/Controller/RebuildParentIdsController.php index d69ea7f..9f99bf4 100644 --- a/src/Api/Controller/RebuildParentIdsController.php +++ b/src/Api/Controller/RebuildParentIdsController.php @@ -83,6 +83,9 @@ public function handle(ServerRequestInterface $request): ResponseInterface // --- PART 3: Update child and descendant counts --- // Update child counts + // get prefix an concat with $tableName + $prefix = $db->getTablePrefix(); + $tableName = $prefix . $tableName; $db->statement(" UPDATE {$tableName} t1 INNER JOIN (