summaryrefslogtreecommitdiff
path: root/includes/update.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/update.inc')
-rw-r--r--includes/update.inc14
1 files changed, 14 insertions, 0 deletions
diff --git a/includes/update.inc b/includes/update.inc
index 30cfffdbd..27fa80a3f 100644
--- a/includes/update.inc
+++ b/includes/update.inc
@@ -155,6 +155,20 @@ function update_prepare_d7_bootstrap() {
'description' => $has_required_schema ? '' : 'Please update your Drupal 6 installation to the most recent version before attempting to upgrade to Drupal 7',
),
);
+
+ // Make sure that the database environment is properly set up.
+ try {
+ db_run_tasks(db_driver());
+ }
+ catch (DatabaseTaskException $e) {
+ $requirements['database tasks'] = array(
+ 'title' => 'Database environment',
+ 'value' => 'There is a problem with your database environment',
+ 'severity' => REQUIREMENT_ERROR,
+ 'description' => $e->getMessage(),
+ );
+ }
+
update_extra_requirements($requirements);
// Allow a D6 session to work, since the upgrade has not been performed yet.