- Issue created by @pasqualle
drush updb
--------------------------------------------------------------------
Module Update ID Type Description
--------------------------------------------------------------------
user 10000 hook_update_n ....
[success] Finished performing updates.
It seems everything is ok, but the update and any subsequent update will not run if we have a bad hook_update_dependencies implementation. There is no error or warning. The only indication is that the updates are not running, but no explanation why.
Implement hook_update_dependencies with a non existent dependency. Then try to run the pending updates (with drush updb
).
function mymodule_update_dependencies() {
// Make sure our update hook runs first.
$dependencies['user'][10000] = [
'non_existent_update' => 10001,
];
return $dependencies;
}
Would like to see an error like this:
[notice] Update user_update_10000 has an unmet dependency and can not start.
[error] The update function non_existent_update_update_10001 does not exist.
[error] Update aborted by: user_update_10000
Active
10.1 ✨