summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2008-01-21 15:06:41 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2008-01-21 15:06:41 +0000
commit354b62a0fac4e9a73d02e93695b0d73847a1a04b (patch)
tree19efcefe358097d662a237eb362184ed1c8fb6d9 /update.php
parent3a126a55baee142136d0bb175e13c33e4e1ae855 (diff)
downloadbrdo-354b62a0fac4e9a73d02e93695b0d73847a1a04b.tar.gz
brdo-354b62a0fac4e9a73d02e93695b0d73847a1a04b.tar.bz2
#208602 follow up by myself and webernet: invert conditional to properly update schema versions, when needed
Diffstat (limited to 'update.php')
-rw-r--r--update.php5
1 files changed, 2 insertions, 3 deletions
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);
}