install.provision.inc 338 Bytes
Newer Older
1 2
<?php

3
function drush_db_provision_install_validate() {
4
  d()->service('db')->connect();
5 6
}

7
function drush_db_pre_provision_install() {
8
  d()->service('db')->create_site_database();
9 10
}

11 12
function drush_db_pre_provision_install_rollback() {
  if (!_provision_drupal_site_installed()) {
13
    d()->service('db')->destroy_site_database();
14 15
  }
}