diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-04-15 07:28:05 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-04-15 07:28:05 +0000 |
| commit | c7adbfff46a087d3a899cf08be61a025de05f5ee (patch) | |
| tree | b828954489ab629d96bc7037c455f9012b4ecf16 /roundcubemail/installer/test.php | |
| parent | bbe3c2010df9041645a60c76cc3d3694a3aa05eb (diff) | |
Add minimal database schema check to installer and update script
git-svn-id: https://svn.roundcube.net/trunk@3490 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/installer/test.php')
| -rw-r--r-- | roundcubemail/installer/test.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/roundcubemail/installer/test.php b/roundcubemail/installer/test.php index 1495715d5..66698d7ad 100644 --- a/roundcubemail/installer/test.php +++ b/roundcubemail/installer/test.php @@ -164,15 +164,12 @@ if ($db_working) { echo '<p><input type="submit" name="initdb" value="Initialize database" /></p>'; $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 ? '<p class="warning">Failed to update the database schema! Please manually execute the SQL statements from the SQL/*.update.sql file on your database</p>' : - '<p><input type="submit" name="updatedb" value="Update schema now" /></p>'; + $updatefile = INSTALL_PATH . 'SQL/' . $DB->db_provider . '.update.sql'; + echo '<p class="warning">Please manually execute the SQL statements from '.$updatefile.' on your database</p>'; $db_working = false; } - */ else { $RCI->pass('DB Schema'); echo '<br />'; |
