Skip to content

Commit

Permalink
Remove db_url
Browse files Browse the repository at this point in the history
  • Loading branch information
ol0lll committed Aug 28, 2024
1 parent 86f6e37 commit c8cafb3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions BackendCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,6 @@ public function createTestingDump()
{
$sql = SqlBase::create();
$dbSpec = $sql->getDbSpec();
$dbUrl = $dbSpec['driver'].'://'.$dbSpec['username'].':'.$dbSpec['password'].'@'.$dbSpec['host'].':'.$dbSpec['port'].'/'.$dbSpec['database'];

// Prepare settings file.
$defaultSettingsFile = $this->drupalRootDirectory().'/sites/default/settings.php';
Expand All @@ -361,7 +360,7 @@ public function createTestingDump()
}
$this->prepareSettingsFile($defaultSettingsFile, $dbSpec);

$this->process(['php', 'core/scripts/db-tools.php', 'dump-database-d8-mysql', '--database-url', $dbUrl], $this->drupalRootDirectory());
$this->process(['php', 'core/scripts/db-tools.php', 'dump-database-d8-mysql'], $this->drupalRootDirectory());

if (!empty($tmpName)) {
rename($tmpName, $defaultSettingsFile);
Expand Down

0 comments on commit c8cafb3

Please sign in to comment.