From 98c9a2927f61cfde9ba303fbb4ebfca09c34911a Mon Sep 17 00:00:00 2001 From: Trevor Slocum Date: Tue, 18 Aug 2020 18:16:50 -0700 Subject: [PATCH] Tweak SQLite database path changes --- inc/defines.php | 3 +++ settings.default.php | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/inc/defines.php b/inc/defines.php index 085720c..b9864f8 100644 --- a/inc/defines.php +++ b/inc/defines.php @@ -61,6 +61,9 @@ if (!defined('TINYIB_DBDRIVER')) { if (!defined('TINYIB_DBDSN')) { define('TINYIB_DBDSN', ''); } +if (!defined('TINYIB_DBPATH')) { + define('TINYIB_DBPATH', 'tinyib.db'); +} if (!isset($tinyib_hidefieldsop)) { $tinyib_hidefieldsop = array(); } diff --git a/settings.default.php b/settings.default.php index bb92366..267d471 100644 --- a/settings.default.php +++ b/settings.default.php @@ -98,9 +98,9 @@ define('TINYIB_DBUSERNAME', ''); // Username define('TINYIB_DBPASSWORD', ''); // Password define('TINYIB_DBNAME', ''); // Database -// Database configuration - SQLite3, SQLite -// The following only apply when TINYIB_DBMODE is set to sqlite3 or sqlite -define('TINYIB_DBPATH', 'tinyib.db'); // Sqlite DB path +// 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/ // Database configuration - PDO // The following only apply when TINYIB_DBMODE is set to pdo (see README for instructions)