Skip to content

Commit

Permalink
Style
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed May 19, 2014
1 parent 7bac124 commit a707098
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -9,12 +9,13 @@ public function up()
$t->end();
$this->addColumn('horde_histories', 'history_modseq', 'integer', array('default' => 0, 'null' => false));

$rows= $this->selectAll('SELECT history_id FROM horde_histories ORDER BY history_ts ASC');
$rows = $this->selectAll('SELECT history_id FROM horde_histories ORDER BY history_ts ASC');
$seq = 1;

$this->beginDbTransaction();
foreach ($rows as $row) {
$this->update('UPDATE horde_histories SET history_modseq = ? WHERE history_id = ?',
$this->update(
'UPDATE horde_histories SET history_modseq = ? WHERE history_id = ?',
array($seq++, $row['history_id']));
}
if (!empty($rows)) {
Expand Down

0 comments on commit a707098

Please sign in to comment.