Skip to content

Commit

Permalink
Clean up upgrader for version 14. Put {} around table name,
Browse files Browse the repository at this point in the history
capitalize reserved words, use single quotes in the query to avoid
escaping the double quotes, remove table alias.
  • Loading branch information
bharat committed Sep 28, 2009
1 parent cec4493 commit a0d13cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/gallery/helpers/gallery_installer.php
Expand Up @@ -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);
}

Expand Down

0 comments on commit a0d13cd

Please sign in to comment.