Unverified Commit d948f9cb authored by alexpott's avatar alexpott

Issue #3051889 by idebr, joachim: $sandbox['max'] count in docs for hook_update_N() is incorrect

parent e52604b4
......@@ -637,7 +637,7 @@ function hook_update_N(&$sandbox) {
// This must be the first run. Initialize the sandbox.
$sandbox['progress'] = 0;
$sandbox['current_pk'] = 0;
$sandbox['max'] = Database::getConnection()->query('SELECT COUNT(myprimarykey) FROM {mytable1}')->fetchField() - 1;
$sandbox['max'] = Database::getConnection()->query('SELECT COUNT(myprimarykey) FROM {mytable1}')->fetchField();
}
// Update in chunks of 20.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment