Mercurial > hg > rc2
changeset 28:6e8e57ef139f default tip
merge
| author | Charlie Root |
|---|---|
| date | Sun, 18 Jan 2026 14:25:54 -0500 |
| parents | c32b53434b47 (current diff) c4ade3f35fb2 (diff) |
| children | |
| files | |
| diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/program/include/rcmail_install.php Sun Jan 18 14:20:29 2026 -0500 +++ b/program/include/rcmail_install.php Sun Jan 18 14:25:54 2026 -0500 @@ -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)) {
