feature: add Microsoft SQL Server database support

can be used via the pdo_dblib or pdo_odbc extensions.
requires Microsoft SQL Server 2016 or later.

* add schema/migrations
* add database provider
* add setup check for pdo module needed by selected driver (dblib/odbc)
* add default config doc
This commit is contained in:
Joe Nahmias
2022-07-08 08:22:10 -04:00
committed by Frédéric Guillot
parent 338d02a2f6
commit 33852e9ea0
5 changed files with 773 additions and 6 deletions

View File

@@ -23,6 +23,14 @@ if (DB_DRIVER === 'postgres' && !extension_loaded('pdo_pgsql')) {
throw new Exception('PHP extension required: "pdo_pgsql"');
}
if (DB_DRIVER === 'odbc' && !extension_loaded('pdo_odbc')) {
throw new Exception('PHP extension required: "pdo_odbc"');
}
if (DB_DRIVER === 'dblib' && !extension_loaded('pdo_dblib')) {
throw new Exception('PHP extension required: "pdo_dblib"');
}
// Check other extensions
foreach (array('gd', 'mbstring', 'hash', 'openssl', 'json', 'hash', 'ctype', 'filter', 'session', 'dom', 'filter', 'SimpleXML', 'xml') as $ext) {
if (!extension_loaded($ext)) {