]> git.quilime.com - clmpr.git/commitdiff
removed migration file
authorGabriel Dunne <gdunne@quilime.com>
Wed, 21 Dec 2011 22:06:05 +0000 (14:06 -0800)
committerGabriel Dunne <gdunne@quilime.com>
Wed, 21 Dec 2011 22:06:05 +0000 (14:06 -0800)
_migrate.php [deleted file]

diff --git a/_migrate.php b/_migrate.php
deleted file mode 100644 (file)
index f542239..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-
-include 'init.php';
-
-$dbh = get_db_connection();
-$dbh->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;