From 037a09f376edbaf44e10cf61ff48fb4075c44eb8 Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Sun, 24 Jan 2021 04:26:47 -0700 Subject: [PATCH] Change INSTALL.md for 0.6.8. Note that spool must be rebuilt for upgrade --- INSTALL.md | 6 ++--- build-overview-db.php | 60 ------------------------------------------- 2 files changed, 3 insertions(+), 63 deletions(-) delete mode 100644 build-overview-db.php diff --git a/INSTALL.md b/INSTALL.md index 594ffc5..8806395 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -52,9 +52,9 @@ Upgrading: 4. Compare upgrade config files in config dir /upgrade and change your exsiting config as necessary -5. If upgrading from a version prior to 0.6.7 it is REQUIRED to run the provided -script 'build-overview-db.php' at this point. Read the script for instructions. -NOTE: If upgrading and your spool dir does not include any files ending in .db3, you need to do this. +5. If your current version is pre-0.6.8, you must pull articles again from your upstream server to set up. +Please post in a rocksolid.* group (rocksolid.nodes.help) and we can walk you through this. It's pretty +simple. 6. Enable cron job and check that everything works after it runs the first time diff --git a/build-overview-db.php b/build-overview-db.php deleted file mode 100644 index e5ffcd6..0000000 --- a/build-overview-db.php +++ /dev/null @@ -1,60 +0,0 @@ -prepare($sql); - $overviewfp = fopen($argv[1].'-overview', 'r'); - echo "Building $database"; - $i = 0; - while($data=fgets($overviewfp)) { - $parts=preg_split("/(:#rsl#:|\t)/", $data);; - $stmt->execute([$parts[0], $parts[1], $parts[2], $parts[3], $parts[4], $parts[5]]); - if($i++ > 100) { - echo '.'; - $i = 0; - } - } - echo "\nFinished.\n"; - fclose($overviewfp); - $dbh = null; - -function rslight_db_open($database, $table) { - try { - $dbh = new PDO('sqlite:'.$database); - } catch (PDOExeption $e) { - echo 'Connection failed: '.$e->getMessage(); - exit; - } - $dbh->exec("CREATE TABLE IF NOT EXISTS $table( - id INTEGER PRIMARY KEY, - newsgroup TEXT, - number TEXT, - msgid TEXT, - date TEXT, - name TEXT, - subject TEXT)"); - return($dbh); -} -?>