function drush_core_updatedb_status

8.0.x core.drush.inc drush_core_updatedb_status()
6.x core.drush.inc drush_core_updatedb_status()
7.x core.drush.inc drush_core_updatedb_status()
master core.drush.inc drush_core_updatedb_status()

Command handler. List pending DB updates.

File

commands/core/core.drush.inc, line 474
Core drush commands.

Code

function drush_core_updatedb_status() {
  require_once DRUSH_DRUPAL_CORE . '/includes/install.inc';
  drupal_load_updates();
  drush_include_engine('drupal', 'update');
  list($pending, $start) = updatedb_status();
  if (empty($pending)) {
    drush_log(dt("No database updates required"), LogLevel::OK);
  }
  return $pending;
}