Commit d838d800 authored by Steve Müller's avatar Steve Müller

add comment about using template1 database if dbname parameter is not set

parent e334f06d
......@@ -60,6 +60,9 @@ class Driver implements \Doctrine\DBAL\Driver
if (isset($params['dbname'])) {
$dsn .= 'dbname=' . $params['dbname'] . ' ';
} else {
// Used for temporary connections to allow operations like dropping the database currently connected to.
// Connecting without an explicit database does not work, therefore "template1" database is used
// as it is certainly present in every server setup.
$dsn .= 'dbname=template1' . ' ';
}
......
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