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 443
Core drush commands.

Code

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

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

  // Clear all caches in a new process. We just performed major surgery.
  drush_invoke_process('@self', 'cache-clear', array('all'));

  drush_log(dt('Finished performing updates.'), 'ok');
}