Changing table column names; removing no-longer-used columns
authorRobert Sesek <rsesek@bluestatic.org>
Thu, 12 Jan 2006 06:24:39 +0000 (06:24 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Thu, 12 Jan 2006 06:24:39 +0000 (06:24 +0000)
includes/cachev.php
index.php

index 3c0946f9b2516b6125c4b7bacb16803f2f37f726..b21d73877a895b990b641acc92c085c458dbb884 100644 (file)
@@ -199,11 +199,8 @@ class cacheV
                        {
                                if (trim($path['action']) == 'A')
                                {
-                                       if (!isset($addlist["$path[value]"]))
-                                       {
-                                               $path['value'] = preg_replace('#^/#', '', $path['value']);
-                                               $addlist["$path[value]"] = $log['revision'];
-                                       }
+                                       $path['value'] = preg_replace('#^/#', '', $path['value']);
+                                       $addlist["$path[value]"] = $log['revision'];
                                }
                        }
                }
@@ -225,7 +222,7 @@ class cacheV
                // insert _nodes
                $this->registry->db->query("
                        REPLACE INTO {$this->hash}_nodes
-                               (name, addrevs, revs, properties)
+                               (name, revadd, revnow, properties)
                        VALUES
                                " . implode(",\n", $inserts['nodes'])
                );
index 9d17fd90275c03727a7e3c3fc187e074801110ad..32af714b7256ecca7345b1b79b79e54473368443 100644 (file)
--- a/index.php
+++ b/index.php
@@ -60,10 +60,8 @@ foreach ($viewsvn->repos->fetch_list() AS $repos)
                        CREATE TABLE {$hash}_nodes
                        (
                                name VARCHAR(255) NOT NULL DEFAULT '',
-                               uuid VARCHAR(50) NOT NULL DEFAULT '',
-                               delrevs MEDIUMTEXT NOT NULL DEFAULT '',
-                               addrevs MEDIUMTEXT NOT NULL DEFAULT '',
-                               revs MEDIUMTEXT NOT NULL DEFAULT '',
+                               revnow INT(20) UNSIGNED NOT NULL DEFAULT '',
+                               revadd INT(20) UNSIGNED NOT NULL DEFAULT '',
                                properties MEDIUMTEXT NOT NULL DEFAULT '',
                                PRIMARY KEY (name)
                        )"