From 62a90aa6165e3ac8b05998fa63dd9939127b765b Mon Sep 17 00:00:00 2001 From: Arjen van Bochoven Date: Mon, 10 Apr 2017 19:43:50 +0200 Subject: [PATCH] Rename migration to a unique name --- ...l.php => 002_smart_stats_remove_another_fake_null.php} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename app/modules/smart_stats/migrations/{002_smart_stats_remove_fake_null.php => 002_smart_stats_remove_another_fake_null.php} (79%) diff --git a/app/modules/smart_stats/migrations/002_smart_stats_remove_fake_null.php b/app/modules/smart_stats/migrations/002_smart_stats_remove_another_fake_null.php similarity index 79% rename from app/modules/smart_stats/migrations/002_smart_stats_remove_fake_null.php rename to app/modules/smart_stats/migrations/002_smart_stats_remove_another_fake_null.php index ee5638372..bacd0c2a3 100644 --- a/app/modules/smart_stats/migrations/002_smart_stats_remove_fake_null.php +++ b/app/modules/smart_stats/migrations/002_smart_stats_remove_another_fake_null.php @@ -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() { @@ -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()