Skip to content

Commit

Permalink
Merge branch 'bug-fix'
Browse files Browse the repository at this point in the history
  • Loading branch information
bochoven committed Apr 10, 2017
2 parents 65f0a90 + 62a90aa commit d807fed
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// Remove fake nulls and set them to NULL

class Migration_smart_stats_remove_fake_null extends Model
class Migration_smart_stats_remove_another_fake_null extends Model
{
public function __construct()
{
Expand All @@ -14,12 +14,12 @@ public function up()
{
// Set Nulls
foreach (array('error_count') as $item)
{
$sql = 'UPDATE smart_stats
{
$sql = 'UPDATE smart_stats
SET '.$item.' = NULL
WHERE '.$item.' = -9876543 OR '.$item.' = -9876540';
$this->exec($sql);
}
}
}

public function down()
Expand Down

0 comments on commit d807fed

Please sign in to comment.