Update default SQLite database path

This commit is contained in:
Trevor Slocum 2020-11-30 17:04:46 -08:00
parent 12d9fdf612
commit f8049fa087
2 changed files with 6 additions and 2 deletions

View File

@ -80,7 +80,11 @@ if (!defined('TINYIB_DBDSN')) {
define('TINYIB_DBDSN', '');
}
if (!defined('TINYIB_DBPATH')) {
define('TINYIB_DBPATH', 'tinyib.db');
if (file_exists('tinyib.db')) {
define('TINYIB_DBPATH', 'tinyib.db');
} else {
define('TINYIB_DBPATH', '.tinyib.db');
}
}
if (!isset($tinyib_hidefieldsop)) {
$tinyib_hidefieldsop = array();

View File

@ -118,7 +118,7 @@ define('TINYIB_DBNAME', ''); // Database
// Database configuration - SQLite / SQLite3
// The following only apply when TINYIB_DBMODE is set to sqlite or sqlite3
define('TINYIB_DBPATH', 'tinyib.db'); // SQLite DB path relative to inc/
define('TINYIB_DBPATH', '.tinyib.db'); // SQLite DB path
// Database configuration - PDO
// The following only apply when TINYIB_DBMODE is set to pdo (see README for instructions)