From 61d382c831e322f6d16e2731d107055684958f85 Mon Sep 17 00:00:00 2001 From: Francis Devine Date: Tue, 15 Oct 2024 11:15:48 +1300 Subject: [PATCH] Remove hardcoded db prefix from query This will fail if the site uses a non standard prefix. --- db/upgrade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/upgrade.php b/db/upgrade.php index fa063a2..e4d323d 100644 --- a/db/upgrade.php +++ b/db/upgrade.php @@ -503,7 +503,7 @@ function xmldb_tool_excimer_upgrade($oldversion) { $expectedcount = $DB->count_records_sql(' SELECT count(*) FROM ( SELECT MIN(id) AS id - FROM mdl_tool_excimer_page_groups + FROM {tool_excimer_page_groups} GROUP BY LOWER(name), month ) a ');