Commit f3fa9bcd authored by drumm's avatar drumm Committed by Neil Drumm

Use mysqli if we have it for Drupal 6.

parent 533c66e8
......@@ -185,7 +185,7 @@ class provisionService_db extends provisionService {
function generate_site_credentials() {
$creds = array();
// replace with service type
$db_type = drush_get_option('db_type', 'mysql');
$db_type = drush_get_option('db_type', function_exists('mysqli_connect') ? 'mysqli' : 'mysql');
// As of Drupal 7 there is no more mysqli type
if (drush_drupal_major_version() >= 7) {
$db_type = ($db_type == 'mysqli') ? 'mysql' : $db_type;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment