diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-09-28 08:03:14 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-09-28 08:03:14 -0700 |
commit | a0d13cd324e75bc5ff630d5ead09c9d5734b6de9 (patch) | |
tree | d95beacd1292a83825cfa6ff6d8205ec70866c4b /modules | |
parent | cec4493545dba0c1dbbf1ed825d06aa8f5d2cf0e (diff) |
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.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gallery/helpers/gallery_installer.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gallery/helpers/gallery_installer.php b/modules/gallery/helpers/gallery_installer.php index 49bd9bb7..9e4e3c35 100644 --- a/modules/gallery/helpers/gallery_installer.php +++ b/modules/gallery/helpers/gallery_installer.php @@ -377,8 +377,8 @@ class gallery_installer { 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); } |