File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ public function __construct($path)
32
32
$ this ->pdo = new \PDO ('sqlite: ' . $ path );
33
33
$ this ->pdo ->setAttribute (\PDO ::ATTR_ERRMODE , \PDO ::ERRMODE_EXCEPTION );
34
34
$ this ->pdo ->exec ('
35
- PRAGMA foreign_keys = ON;
35
+ PRAGMA foreign_keys = OFF;
36
+ PRAGMA journal_mode = WAL;
36
37
CREATE TABLE IF NOT EXISTS tags (
37
38
key BLOB NOT NULL,
38
39
tag BLOB NOT NULL
@@ -41,7 +42,6 @@ public function __construct($path)
41
42
key BLOB NOT NULL,
42
43
priority INT NOT NULL
43
44
);
44
- CREATE INDEX IF NOT EXISTS idx_tags_key ON tags(key);
45
45
CREATE INDEX IF NOT EXISTS idx_tags_tag ON tags(tag);
46
46
CREATE UNIQUE INDEX IF NOT EXISTS idx_tags_key_tag ON tags(key, tag);
47
47
CREATE UNIQUE INDEX IF NOT EXISTS idx_priorities_key ON priorities(key);
You can’t perform that action at this time.
0 commit comments