changeset 26:c4ade3f35fb2 default tip

colourise?
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Wed, 10 Dec 2025 19:13:31 +0000
parents bea5a38be938
children
files program/include/rcmail_install.php
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/program/include/rcmail_install.php	Sat Oct 18 12:24:31 2025 -0400
+++ b/program/include/rcmail_install.php	Wed Dec 10 19:13:31 2025 +0000
@@ -451,18 +451,21 @@
         $engine    = $db->db_provider;
         $db_schema = $this->db_read_schema(INSTALL_PATH . "SQL/$engine.initial.sql");
         $errors    = array();
-
+	echo "<p style='color: red'>engin: $engine</p>";
         // check list of tables
         $existing_tables = $db->list_tables();
 
         foreach ($db_schema as $table => $cols) {
+	  
+
             $table = $this->config['db_prefix'] . $table;
-
+	    
             if (!in_array($table, $existing_tables)) {
                 $errors[] = "Missing table '".$table."'";
             }
             else {  // compare cols
                 $db_cols = $db->list_cols($table);
+		echo "<p style='color: red'>table: $table, cols: ".print_r($cols,TRUE)."\ndb_cols:".print_r($db_cols,TRUE)."</p>";
                 $diff    = array_diff(array_keys($cols), $db_cols);
 
                 if (!empty($diff)) {