function drush_core_updatedb

8.0.x core.drush.inc drush_core_updatedb()
6.x core.drush.inc drush_core_updatedb()
7.x core.drush.inc drush_core_updatedb()
3.x core.drush.inc drush_core_updatedb()
4.x core.drush.inc drush_core_updatedb()
5.x core.drush.inc drush_core_updatedb()
master core.drush.inc drush_core_updatedb()

Command handler. Execute update.php code from drush.

File

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

Code

function drush_core_updatedb() {
  if (drush_get_context('DRUSH_SIMULATE')) {
    drush_log(dt('updatedb command does not support --simulate option.'), LogLevel::OK);
    return TRUE;
  }

  drush_include_engine('drupal', 'update');
  if (update_main() === FALSE) {
    return FALSE;
  }

  // Clear all caches in a new process. We just performed major surgery.
  drush_drupal_cache_clear_all();

  drush_log(dt('Finished performing updates.'), LogLevel::OK);
}