public function Schema::__construct in Drupal driver for SQL Server and SQL Azure 3.0.x
Adding abilty to pass schema in configuration.
Overrides Schema::__construct
File
- drivers/
lib/ Drupal/ Driver/ Database/ sqlsrv/ Schema.php, line 766
Class
Namespace
Drupal\Driver\Database\sqlsrvCode
public function __construct($connection) {
parent::__construct($connection);
$options = $connection
->getConnectionOptions();
if (isset($options['schema'])) {
$this->defaultSchema = $options['schema'];
}
$this->cacheSchema = $options['cache_schema'] ?? FALSE;
}