From c25f7523ce006c1cc02ce0dfda86d2afdb266608 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 9 Apr 2007 05:52:53 +0000 Subject: [PATCH] We can remove rebuild.sh.php because we no longer do the database thing --- rebuild.sh.php | 76 -------------------------------------------------- 1 file changed, 76 deletions(-) delete mode 100644 rebuild.sh.php diff --git a/rebuild.sh.php b/rebuild.sh.php deleted file mode 100644 index c106801..0000000 --- a/rebuild.sh.php +++ /dev/null @@ -1,76 +0,0 @@ -#!/usr/bin/php -query("SHOW TABLES"); -while ($table = $db->fetch_array($tables)) -{ - $value = array_values($table); - $tablelist[] = $value[0]; -} - -foreach ($viewsvn->repos->fetch_list() AS $repos) -{ - if (!in_array('c' . ($hash = md5($viewsvn->repos->fetch_path($repos))) . '_revs', $tablelist)) - { - $viewsvn->debug("creating new cacheV: $repos"); - $db->query(" - CREATE TABLE c{$hash}_revs - ( - revision INT(20) UNSIGNED NOT NULL DEFAULT 0, - author VARCHAR(255) NOT NULL DEFAULT '', - dateline VARCHAR(100) NOT NULL DEFAULT '', - files MEDIUMTEXT NOT NULL DEFAULT '', - message MEDIUMTEXT NOT NULL DEFAULT '', - PRIMARY KEY (revision) - )" - ); - - $db->query(" - CREATE TABLE c{$hash}_nodes - ( - name VARCHAR(255) NOT NULL DEFAULT '', - node VARCHAR(50) NOT NULL DEFAULT '', - revision INT(20) UNSIGNED NOT NULL DEFAULT 0, - history MEDIUMTEXT NOT NULL DEFAULT '', - properties MEDIUMTEXT NOT NULL DEFAULT '', - PRIMARY KEY (name) - )" - ); - } - - $controller = new Controller($repos); - $controller->cachev->build(null, true); -} - -/*=====================================================================*\ -|| ################################################################### -|| # $HeadURL$ -|| # $Id$ -|| ################################################################### -\*=====================================================================*/ -?> \ No newline at end of file -- 2.43.5