Skip to content

Instantly share code, notes, and snippets.

@AdrianRossouw
Created March 16, 2010 21:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AdrianRossouw/334564 to your computer and use it in GitHub Desktop.
Save AdrianRossouw/334564 to your computer and use it in GitHub Desktop.
<?php
function drush_db_provision_install_validate($url) {
provision_service('db', 'connect');
}
function drush_db_pre_provision_install($url) {
provision_service('db', 'create_site_database', $url);
}
function drush_db_pre_provision_install_rollback($url) {
if (!_provision_drupal_site_installed($url)) {
provision_service('db', 'destroy_site_database',
drush_get_option('db_name'), drush_get_option('db_user'),
drush_get_option('db_passwd')
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment