Created
March 16, 2010 21:43
-
-
Save AdrianRossouw/334564 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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