Skip to content

Commit

Permalink
Make comments less SQlite specific
Browse files Browse the repository at this point in the history
  • Loading branch information
parijke committed Jun 3, 2024
1 parent 33335e0 commit 46378f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/HealthCheck/DoctrineConnectionHealthCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ public function check(HealthReportInterface $report): HealthReportInterface
}

try {
// This will try to make a connection. It throws an exception if it fails on MySQL and Postgres.
// In the case of SQLite it will create an empty database, so we need to check for empty tables later on.
$this->connection->connect(); // This will create the SQLite database if it does not exist
// Get the schema manager
$sm = $this->connection->createSchemaManager();
Expand Down

0 comments on commit 46378f3

Please sign in to comment.