$module) { if ($module['status'] == 1) { if (!array_key_exists($name, $merged_modules)) { drush_log(dt("Could not find a version of the !name module", array('!name' => $name)), 'warning'); } else { if (($merged_modules[$name]['schema_version'] > 0) && ($module['schema_version'] > $merged_modules[$name]['schema_version'])) { drush_set_error('PROVISION_SCHEMA_UPGRADE_FAILURE', dt("The version of the !name module found on this platform has a lower Schema version than the one the site has installed", array('!name' => $name))); } else { drush_log(dt("Found a valid version of the !name module with schema version !schema_version", array('!name' => $name, '!schema_version' => $merged_modules[$name]['schema_version']))); } } } } } } /** * Remove the extracted site directory */ function drush_provision_drupal_pre_provision_deploy_rollback($url) { if ($site_root = drush_get_context('DRUSH_DRUPAL_SITE_ROOT')) { _provision_recursive_delete($site_root); } } function drush_provision_drupal_provision_deploy($url) { $url = drush_get_option('site_url'); _provision_drupal_maintain_aliases($url); } function drush_provision_drupal_post_provision_deploy($url) { provision_prepare_environment(); _provision_drupal_create_settings_file($url); provision_save_site_data($url); // call the drush updatedb command. drush_backend_invoke("updatedb", array('uri' => "http://$url")); // We should be able to fully load Drupal now. if (drush_bootstrap(DRUSH_BOOTSTRAP_DRUPAL_FULL)) { drush_include_engine('drupal', 'deploy'); drush_set_option('packages', _scrub_object(provision_drupal_system_map()), 'site'); _provision_drupal_rebuild_caches(); drush_set_option('aliases', drush_get_option('aliases'), 'site'); drush_set_option('redirection', drush_get_option('redirection'), 'site'); } }