From 354b62a0fac4e9a73d02e93695b0d73847a1a04b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Mon, 21 Jan 2008 15:06:41 +0000 Subject: #208602 follow up by myself and webernet: invert conditional to properly update schema versions, when needed --- update.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'update.php') diff --git a/update.php b/update.php index 59a8eaa16..0d5b0e0f9 100644 --- a/update.php +++ b/update.php @@ -176,9 +176,8 @@ function update_do_one($module, $number, &$context) { if (!empty($ret['#abort'])) { $context['results'][$module]['#abort'] = TRUE; } - // The schema update is not updated once a module's updates have been aborted. - if ($context['finished'] == 1 && !empty($context['results'][$module]['#abort'])) { - // Update the installed version + // Record the schema update if it was completed successfully. + if ($context['finished'] == 1 && empty($context['results'][$module]['#abort'])) { drupal_set_installed_schema_version($module, $number); } -- cgit v1.2.3