Preparing for Cacti 0.8.7c

git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.7@4582 860744bd-22fc-0310-8c96-e9fe5004b5ca
This commit is contained in:
Larry Adams committed 2008-05-16 10:51:32 +00:00
1 parent 172f6b1f8c
commit 1b24bacdda
3 files changed
+38 -5

No files matched your search

+5 -4
View File
@@ -68,8 +68,7 @@ $messages = array(
21 => array(
"message" => 'User delete not permitted for designated template or guest user.',
"type" => "error")
);
);
$cdef_operators = array(1 =>
"+",
@@ -257,7 +256,8 @@ $snmp_implimentations = array(
$rrdtool_versions = array(
"rrd-1.0.x" => "RRDTool 1.0.x",
"rrd-1.2.x" => "RRDTool 1.2.x");
"rrd-1.2.x" => "RRDTool 1.2.x",
"rrd-1.3.x" => "RRDTool 1.3.x");
$cdef_item_types = array(
1 => "Function",
@@ -479,7 +479,8 @@ $hash_version_codes = array(
"0.8.6j" => "0013",
"0.8.7" => "0014",
"0.8.7a" => "0015",
"0.8.7b" => "0016"
"0.8.7b" => "0016",
"0.8.7c" => "0017"
);
$hash_type_names = array(
+29
View File
@@ -0,0 +1,29 @@
<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2008 The Cacti Group |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
| as published by the Free Software Foundation; either version 2 |
| of the License, or (at your option) any later version. |
| |
| This program is distributed in the hope that it will be useful, |
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU General Public License for more details. |
+-------------------------------------------------------------------------+
| Cacti: The Complete RRDTool-based Graphing Solution |
+-------------------------------------------------------------------------+
| This code is designed, written, and maintained by the Cacti Group. See |
| about.php and/or the AUTHORS file for specific developer information. |
+-------------------------------------------------------------------------+
| http://www.cacti.net/ |
+-------------------------------------------------------------------------+
*/
function upgrade_to_0_8_7c() {
/* speed up the UI, missed in 0.8.7b upgrade */
db_install_execute("0.8.7b", "ALTER TABLE `data_local` ADD INDEX `host_id`(`host_id`)");
}
?>
+4 -1
View File
@@ -27,7 +27,7 @@ include("../include/global.php");
/* allow the upgrade script to run for as long as it needs to */
ini_set("max_execution_time", "0");
$cacti_versions = array("0.8", "0.8.1", "0.8.2", "0.8.2a", "0.8.3", "0.8.3a", "0.8.4", "0.8.5", "0.8.5a", "0.8.6", "0.8.6a", "0.8.6b", "0.8.6c", "0.8.6d", "0.8.6e", "0.8.6f", "0.8.6g", "0.8.6h", "0.8.6i", "0.8.6j", "0.8.6k", "0.8.7", "0.8.7a", "0.8.7b");
$cacti_versions = array("0.8", "0.8.1", "0.8.2", "0.8.2a", "0.8.3", "0.8.3a", "0.8.4", "0.8.5", "0.8.5a", "0.8.6", "0.8.6a", "0.8.6b", "0.8.6c", "0.8.6d", "0.8.6e", "0.8.6f", "0.8.6g", "0.8.6h", "0.8.6i", "0.8.6j", "0.8.6k", "0.8.7", "0.8.7a", "0.8.7b", "0.8.7c");
$old_cacti_version = db_fetch_cell("select cacti from version");
@@ -398,6 +398,9 @@ if ($_REQUEST["step"] == "4") {
}elseif ($cacti_versions[$i] == "0.8.7b") {
include ("0_8_7a_to_0_8_7b.php");
upgrade_to_0_8_7b();
}elseif ($cacti_versions[$i] == "0.8.7c") {
include ("0_8_7b_to_0_8_7c.php");
upgrade_to_0_8_7c();
}
}
}