From 2491c6240cad60e68916a79c7a0689bedc2cefd9 Mon Sep 17 00:00:00 2001 From: thomascube Date: Thu, 15 Apr 2010 07:28:05 +0000 Subject: Add minimal database schema check to installer and update script --- installer/test.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'installer/test.php') diff --git a/installer/test.php b/installer/test.php index 1495715d5..66698d7ad 100644 --- a/installer/test.php +++ b/installer/test.php @@ -164,15 +164,12 @@ if ($db_working) { echo '

'; $db_working = false; } - /* - else if (!$RCI->db_schema_check($update = !empty($_POST['updatedb']))) { + else if ($RCI->db_schema_check($DB, $update = !empty($_POST['updatedb']))) { $RCI->fail('DB Schema', "Database schema differs"); - - echo $update ? '

Failed to update the database schema! Please manually execute the SQL statements from the SQL/*.update.sql file on your database

' : - '

'; + $updatefile = INSTALL_PATH . 'SQL/' . $DB->db_provider . '.update.sql'; + echo '

Please manually execute the SQL statements from '.$updatefile.' on your database

'; $db_working = false; } - */ else { $RCI->pass('DB Schema'); echo '
'; -- cgit v1.2.3