forked from GithubBackups/tinyib
Update default SQLite database path
This commit is contained in:
parent
12d9fdf612
commit
f8049fa087
@ -80,7 +80,11 @@ if (!defined('TINYIB_DBDSN')) {
|
|||||||
define('TINYIB_DBDSN', '');
|
define('TINYIB_DBDSN', '');
|
||||||
}
|
}
|
||||||
if (!defined('TINYIB_DBPATH')) {
|
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)) {
|
if (!isset($tinyib_hidefieldsop)) {
|
||||||
$tinyib_hidefieldsop = array();
|
$tinyib_hidefieldsop = array();
|
||||||
|
@ -118,7 +118,7 @@ define('TINYIB_DBNAME', ''); // Database
|
|||||||
|
|
||||||
// Database configuration - SQLite / SQLite3
|
// Database configuration - SQLite / SQLite3
|
||||||
// The following only apply when TINYIB_DBMODE is set to sqlite or 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
|
// Database configuration - PDO
|
||||||
// The following only apply when TINYIB_DBMODE is set to pdo (see README for instructions)
|
// The following only apply when TINYIB_DBMODE is set to pdo (see README for instructions)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user