From 00678628d2624d984d4deb9f2d94680a87adf6ac Mon Sep 17 00:00:00 2001 From: printempw Date: Thu, 28 Jul 2016 15:15:35 +0800 Subject: [PATCH] remove the foolish tests --- tests/migration.php | 53 --------------------------------------------- 1 file changed, 53 deletions(-) delete mode 100644 tests/migration.php diff --git a/tests/migration.php b/tests/migration.php deleted file mode 100644 index 0c417320..00000000 --- a/tests/migration.php +++ /dev/null @@ -1,53 +0,0 @@ -query($sql); -while ($row = $result->fetch_array()) { - if ($row['hash_steve'] != "") { - $t = new Models\Texture(); - $t->name = $row['username']."-steve"; - $t->type = "steve"; - $t->hash = $row['hash_steve']; - $t->size = 0; - $t->uploader = 0; - $t->public = "1"; - $t->upload_at = \Utils::getTimeFormatted(); - $t->save(); - echo $row['hash_steve']." saved.
"; - } - - if ($row['hash_alex'] != "") { - $t = new Models\Texture(); - $t->name = $row['username']."-alex"; - $t->type = "alex"; - $t->hash = $row['hash_alex']; - $t->size = 0; - $t->uploader = 0; - $t->public = "1"; - $t->upload_at = \Utils::getTimeFormatted(); - $t->save(); - echo $row['hash_alex']." saved.
"; - } - - if ($row['hash_cape'] != "") { - $t = new Models\Texture(); - $t->name = $row['username']."-cape"; - $t->type = "cape"; - $t->hash = $row['hash_cape']; - $t->size = 0; - $t->uploader = 0; - $t->public = "1"; - $t->upload_at = \Utils::getTimeFormatted(); - $t->save(); - echo $row['hash_cape']." saved.
"; - } -} - -exit;