From: Gabriel Dunne Date: Mon, 26 Dec 2011 22:53:00 +0000 (-0800) Subject: Removed local database migration script X-Git-Url: https://git.quilime.com/?a=commitdiff_plain;h=c585ec9f19d6e244a1363fa4795a2714c2fc9cea;p=clmpr.git Removed local database migration script --- diff --git a/admin/_migrate.php b/admin/_migrate.php deleted file mode 100644 index 87c99a1..0000000 --- a/admin/_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;