From d122d936995ca26d8240cadc352f2082579f84aa Mon Sep 17 00:00:00 2001 From: Gabriel Dunne Date: Wed, 21 Dec 2011 14:06:05 -0800 Subject: [PATCH] removed migration file --- _migrate.php | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 _migrate.php diff --git a/_migrate.php b/_migrate.php deleted file mode 100644 index f542239..0000000 --- a/_migrate.php +++ /dev/null @@ -1,31 +0,0 @@ -beginTransaction(); - -$q = $dbh->prepare("SELECT *, clumps.id as clump_id - FROM clumps - JOIN users - ON users.id = clumps.user_id - ORDER BY date DESC"); -$q->execute(); - -$clumps = array(); -for($i = 0; $row = $q->fetch(); $i++ ): - $clumps[] = $row; -endfor; - -foreach($clumps as $clump) : - #update tags - $tags = str_replace(" ", ',', $clump['tags']); - # update clump - $update = $dbh->prepare("UPDATE `clumps` SET `tags` = '".$tags."' WHERE `id` = '".$clump['clump_id']."'"); - $update->execute(); -endforeach; - -exit; - -$dbh = null; -$q = null; -- 2.34.1