/[drupal]/contributions/modules/provision/db_server/verify.provision.inc
ViewVC logotype

Contents of /contributions/modules/provision/db_server/verify.provision.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.8 - (show annotations) (download) (as text)
Thu May 7 22:04:29 2009 UTC (6 months, 3 weeks ago) by adrian
Branch: MAIN
CVS Tags: DRUPAL-6--0-3, DRUPAL-6--0-2, DRUPAL-6--0-2-RC1, DRUPAL-6--0-4-ALPHA1, DRUPAL-6--0-2-BETA1, DRUPAL-6--0-4-ALPHA3, DRUPAL-6--0-4-ALPHA2, DRUPAL-6--0-3-RC4, DRUPAL-6--0-3-RC2, DRUPAL-6--0-3-RC3, DRUPAL-6--0-3-RC1, HEAD
Changes since 1.7: +3 -3 lines
File MIME type: text/x-php
#456622 - ensure that drush_invoke operates in a clean namespace and does not mistake drupal hooks as its own. Check the issue for the conversion script.
1 <?php
2
3 function drush_provision_mysql_provision_verify_validate() {
4 provision_db_connect();
5 }
6
7 /**
8 * Implementation of hook_provision_verify
9 *
10 * Can't be rolled back.
11 */
12 function drush_provision_mysql_provision_verify() {
13 if (PROVISION_CONTEXT_PLATFORM) {
14 if (!_provision_mysql_can_create_database()) {
15 drush_set_error('PROVISION_CREATE_DB_FAILED');
16 }
17 else {
18 drush_log(dt('Mysql can create new databases.'), 'message');
19 }
20 }
21 }
22
23 function drush_provision_mysql_post_provision_verify() {
24 if (PROVISION_CONTEXT_PLATFORM) {
25 drush_set_option('master_db', drush_get_option('master_db'), 'drupal');
26 }
27 }
28

  ViewVC Help
Powered by ViewVC 1.1.2