Overrides \Drupal\Core\Database\Connection::createDatabase().
string $database: The name of the database to create.
DatabaseNotFoundException
Overrides Connection::createDatabase
public function createDatabase($database) {
// Verify the database is writable.
$db_directory = new SplFileInfo(dirname($database));
if (!$db_directory
->isDir() && !drupal_mkdir($db_directory
->getPathName(), 0755, TRUE)) {
throw new DatabaseNotFoundException('Unable to create database directory ' . $db_directory
->getPathName());
}
}