From a0d13cd324e75bc5ff630d5ead09c9d5734b6de9 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 28 Sep 2009 08:03:14 -0700 Subject: [PATCH] Clean up upgrader for version 14. Put {} around table name, capitalize reserved words, use single quotes in the query to avoid escaping the double quotes, remove table alias. --- modules/gallery/helpers/gallery_installer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/gallery/helpers/gallery_installer.php b/modules/gallery/helpers/gallery_installer.php index 49bd9bb71e..9e4e3c3504 100644 --- a/modules/gallery/helpers/gallery_installer.php +++ b/modules/gallery/helpers/gallery_installer.php @@ -377,8 +377,8 @@ static function upgrade($version) { if ($version == 13) { // Add rules for generating our thumbnails and resizes - Database::instance()->query("update g3_graphics_rules g - set operation=concat(\"gallery_graphics::\", g.operation);"); + Database::instance()->query( + "UPDATE {graphics_rules} SET `operation` = CONCAT('gallery_graphics::', `operation`);"); module::set_version("gallery", $version = 14); }