Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Commit

Permalink
Style consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrauer committed Oct 5, 2015
1 parent 1c6f5da commit 3daa7bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/tracker/database/upgrade/1.2.2.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function mysql()
KEY (`param_name`)
) DEFAULT CHARSET=utf8;");
$this->migrateScalarParams();
$this->db->query('ALTER TABLE `tracker_scalar` DROP `params`');
$this->db->query('ALTER TABLE `tracker_scalar` DROP `params`;');
}

/** Upgrade a PostgreSQL database. */
Expand Down Expand Up @@ -64,10 +64,10 @@ private function migrateScalarParams()
$logger->debug('migrateScalarParams');
/** @var Tracker_ParamModel $paramModel */
$paramModel = MidasLoader::loadModel('Param', $this->moduleName);
$uresult = $this->db->query('SELECT scalar_id, params from tracker_scalar where params is not null');
if ($uresult) {
$uresult = $this->db->query('SELECT scalar_id, params FROM tracker_scalar WHERE params IS NOT NULL;');
if ($uresult !== false) {
while ($row = $uresult->fetch(PDO::FETCH_ASSOC)) {
if ($count % 1000 == 0) {
if ($count % 1000 === 0) {
$logger->debug('Count '.$count);
}
++$count;
Expand Down

0 comments on commit 3daa7bc

Please sign in to comment.