summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/check_setup.php4
-rw-r--r--app/constants.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/app/check_setup.php b/app/check_setup.php
index c4359d7a..afb08f6a 100644
--- a/app/check_setup.php
+++ b/app/check_setup.php
@@ -20,8 +20,8 @@ if (version_compare(PHP_VERSION, '5.4.0', '<')) {
}
// Check extension: PDO
-if (! extension_loaded('pdo_sqlite') && ! extension_loaded('pdo_mysql')) {
- die('PHP extension required: pdo_sqlite or pdo_mysql');
+if (! extension_loaded('pdo_sqlite') && ! extension_loaded('pdo_mysql') && ! extension_loaded('pdo_pgsql')) {
+ die('PHP extension required: pdo_sqlite or pdo_mysql or pdo_pgsql');
}
// Check extension: mbstring
diff --git a/app/constants.php b/app/constants.php
index d52997d7..d52ce2be 100644
--- a/app/constants.php
+++ b/app/constants.php
@@ -18,13 +18,13 @@ defined('APP_VERSION') or define('APP_VERSION', 'master');
// Base directory
define('BASE_URL_DIRECTORY', dirname($_SERVER['PHP_SELF']));
-// Database driver: sqlite or mysql
+// Database driver: sqlite, mysql or postgres
defined('DB_DRIVER') or define('DB_DRIVER', 'sqlite');
// Sqlite configuration
defined('DB_FILENAME') or define('DB_FILENAME', 'data/db.sqlite');
-// Mysql configuration
+// Mysql/Postgres configuration
defined('DB_USERNAME') or define('DB_USERNAME', 'root');
defined('DB_PASSWORD') or define('DB_PASSWORD', '');
defined('DB_HOSTNAME') or define('DB_HOSTNAME', 'localhost');