Skip to content

Commit

Permalink
Merge pull request #33 from liip/create-database-only-if-requested
Browse files Browse the repository at this point in the history
Create database only if requested
  • Loading branch information
alexislefebvre authored Nov 3, 2019
2 parents c137ef4 + 73c29c5 commit f97ccdf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Services/DatabaseTools/ORMDatabaseTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ public function loadFixtures(array $classNames = [], bool $append = false): Abst
$cacheDriver->deleteAll();
}

$this->createDatabaseIfNotExists();
if (false === $this->getKeepDatabaseAndSchemaParameter()) {
$this->createDatabaseIfNotExists();
}

$backupService = $this->getBackupService();

Expand Down

0 comments on commit f97ccdf

Please sign in to comment.