Loading core/lib/Drupal/Core/Extension/module.api.php +1 −1 Original line number Diff line number Diff line Loading @@ -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. Loading Loading
core/lib/Drupal/Core/Extension/module.api.php +1 −1 Original line number Diff line number Diff line Loading @@ -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. Loading