summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Rossouw2009-07-17 10:17:10 (GMT)
committeradrian2009-07-17 10:17:10 (GMT)
commit5e91a832396dfe74a6dc8d4ef46921c64107d5ce (patch)
tree09eff3e1092c78f91c84c584485bc603d40b24f0
parent8f8b7e4007f341dd925ef19aa214701ca728fbfb (diff)
#491904 - remove old database and db account after migration6.x-0.3-rc2
-rw-r--r--db_server/migrate.provision.inc11
1 files changed, 11 insertions, 0 deletions
diff --git a/db_server/migrate.provision.inc b/db_server/migrate.provision.inc
new file mode 100644
index 0000000..ed4b31e
--- /dev/null
+++ b/db_server/migrate.provision.inc
@@ -0,0 +1,11 @@
+<?php
+// $Id$
+
+function drush_provision_mysql_provision_migrate_validate() {
+ provision_db_connect();
+}
+
+// Deletes the old database credentials
+function drush_provision_mysql_post_provision_migrate($url) {
+ return _provision_mysql_destroy_site_db(drush_get_option('db_name'), drush_get_option('db_user'), drush_get_option('db_passwd'));
+}