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

Commit 3daa7bc

Browse files
author
mgrauer
committed
Style consistency
1 parent 1c6f5da commit 3daa7bc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/tracker/database/upgrade/1.2.2.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function mysql()
3636
KEY (`param_name`)
3737
) DEFAULT CHARSET=utf8;");
3838
$this->migrateScalarParams();
39-
$this->db->query('ALTER TABLE `tracker_scalar` DROP `params`');
39+
$this->db->query('ALTER TABLE `tracker_scalar` DROP `params`;');
4040
}
4141

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

0 commit comments

Comments
 (0)