delete.provision.inc

  1. 7.x-3.x dns/delete.provision.inc
  2. 7.x-3.x platform/delete.provision.inc
  3. 7.x-3.x db/delete.provision.inc
  4. 7.x-3.x http/delete.provision.inc

Functions

Namesort descending Description
drush_db_provision_delete Implementation of hook_provision_delete()
drush_db_provision_delete_validate

File

db/delete.provision.inc
View source
  1. <?php
  2. function drush_db_provision_delete_validate() {
  3. if (d()->type === 'site') {
  4. d()->service('db')->connect();
  5. }
  6. }
  7. /**
  8. * Implementation of hook_provision_delete()
  9. *
  10. * This will drop the database, revoke the privileges and flush the privileges.
  11. */
  12. function drush_db_provision_delete() {
  13. if (d()->type === 'site') {
  14. d()->service('db')->destroy_site_database();
  15. }
  16. }