I think this is safe to commit across environments
Note that i deleted a 'sync' directory config it added so that our own would be used.
This commit is contained in:
parent
8fdc0426d5
commit
94cf5aeef5
1 changed files with 24 additions and 0 deletions
24
ddev_drush_settings.php
Normal file
24
ddev_drush_settings.php
Normal file
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
|
||||
$version = "";
|
||||
if (defined("\Drupal::VERSION")) {
|
||||
$version = \Drupal::VERSION;
|
||||
} else if (defined("VERSION")) {
|
||||
$version = VERSION;
|
||||
}
|
||||
|
||||
// Use the array format for D7+
|
||||
if (version_compare($version, "7.0") > 0) {
|
||||
$databases['default']['default'] = array(
|
||||
'database' => "db",
|
||||
'username' => "db",
|
||||
'password' => "db",
|
||||
'host' => "127.0.0.1",
|
||||
'driver' => "mysql",
|
||||
'port' => 32768,
|
||||
'prefix' => "",
|
||||
);
|
||||
} else {
|
||||
// or the old db_url format for d6
|
||||
$db_url = 'mysqli://db:db@127.0.0.1:32768/db';
|
||||
}
|
Loading…
Add table
Reference in a new issue