summaryrefslogtreecommitdiff
path: root/db.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-07-28 07:49:49 +0300
committerAndrew Dolgov <[email protected]>2017-07-28 07:49:49 +0300
commit70f38e9c4fc9eec74a7f648474433184b4dede18 (patch)
treeb89f8a0930aaf7660366800b9b58f37fac26e488 /db.php
parent44b2603786d3cb720119b855580e434dd93529cb (diff)
db: allow absolute paths for scratch db
Diffstat (limited to 'db.php')
-rw-r--r--db.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/db.php b/db.php
index 1654fe5..5c94ecb 100644
--- a/db.php
+++ b/db.php
@@ -4,7 +4,7 @@ class Db {
private $dbh;
private function __construct() {
- $this->dbh = new SQLite3(__DIR__ . "/" . SCRATCH_DB);
+ $this->dbh = new SQLite3(SCRATCH_DB);
$this->dbh->busyTimeout(30*1000);
$this->dbh->exec('PRAGMA journal_mode = wal;');
}