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

Code

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

  drush_include_engine('drupal', 'update', drush_drupal_major_version());
  update_main();

  // Clear all caches. We just performed major surgery.
  drush_drupal_cache_clear_all();

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