summaryrefslogtreecommitdiff
path: root/database
diff options
context:
space:
mode:
authorJulien Dessaux2023-06-16 01:09:44 +0200
committerJulien Dessaux2023-06-16 01:09:44 +0200
commita1f4240f60b05fab7deb8a476def61f546aa0739 (patch)
tree57c7666ef57f548b6520bceab02c51f811ebfb58 /database
parentBegan implementing surveying (diff)
downloadspacetraders-a1f4240f60b05fab7deb8a476def61f546aa0739.tar.gz
spacetraders-a1f4240f60b05fab7deb8a476def61f546aa0739.tar.bz2
spacetraders-a1f4240f60b05fab7deb8a476def61f546aa0739.zip
Activate sqlite WAL
Diffstat (limited to 'database')
-rw-r--r--database/db.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/database/db.js b/database/db.js
index 0fdbcfe..4855233 100644
--- a/database/db.js
+++ b/database/db.js
@@ -13,6 +13,7 @@ const db = new Database(
process.env.NODE_ENV === 'development' ? { verbose: console.log } : null
);
db.pragma('foreign_keys = ON');
+db.pragma('journal_mode = WAL');
db.transaction(function migrate() {
let version;