Sometimes when developing custom Drupal modules it becomes useful to test only one hook_update_N() implementation but there are already many others added after that. This simple patch will force Drupal to perform only selected update for specified module:
Index: update.php =================================================================== --- update.php (revision 0) +++ update.php (working copy) @@ -268,6 +268,7 @@ foreach ($updates as $update) { if ($update >= $version) { $operations[] = array('update_do_one', array($module, $update)); + break; } } }
| Attachment | Size |
|---|---|
| D6-one-update-at-time.patch | 360 bytes |

Comments
Post new comment