diff --git a/CHANGELOG b/CHANGELOG index 6c3090fbb5..2fdfd1f8b2 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -14,6 +14,7 @@ Cacti CHANGELOG -issue#4271: Continued timeout of registered processes -issue#4272: dns_get_record(): A temporary server error occurred -issue#4284: Database upgrade can fail - Uncaught argument count error +-issue#4294: Tables outside of pre-built list that need fixing, cause bad unknown column errors -issue#4295: If a page contains multiple tables, a larger table can cause smaller ones to lose columns. -feature#4258: Update phpseclib to version 2.0.31 diff --git a/install/upgrades/1_2_17.php b/install/upgrades/1_2_17.php index 2488bc4b65..0a83de1a3f 100644 --- a/install/upgrades/1_2_17.php +++ b/install/upgrades/1_2_17.php @@ -174,6 +174,9 @@ function database_fix_mediumint_columns() { $columns = array(); if (!array_key_exists($table, $tables)) { + $i = 0; + $sql = 'ALTER TABLE ' . $table; + $columns = array_rekey( db_fetch_assoc("SHOW COLUMNS FROM " . $table), 'Field', array('Type', 'Null', 'Key', 'Default', 'Extra')