Skip to content

Commit

Permalink
Rename migration to a unique name
Browse files Browse the repository at this point in the history
  • Loading branch information
bochoven committed Apr 10, 2017
1 parent 9fdaa0a commit 62a90aa
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 62a90aa

Please sign in to comment.