Commit ac6ecade authored by Jon Pugh's avatar Jon Pugh

Only connect and create databases if verifying a site.

parent 20ca9028
<?php
function drush_db_provision_verify_validate() {
d()->service('db')->connect();
if (d()->type === 'site') {
d()->service('db')->connect();
}
}
function drush_db_pre_verify_install() {
d()->service('db')->create_site_database();
if (d()->type === 'site') {
d()->service('db')->create_site_database();
}
}
function drush_db_pre_provision_verify_rollback() {
d()->service('db')->destroy_site_database();
if (d()->type === 'site') {
d()->service('db')->destroy_site_database();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment