diff options
author | Julien Dessaux | 2023-06-16 01:09:44 +0200 |
---|---|---|
committer | Julien Dessaux | 2023-06-16 01:09:44 +0200 |
commit | a1f4240f60b05fab7deb8a476def61f546aa0739 (patch) | |
tree | 57c7666ef57f548b6520bceab02c51f811ebfb58 | |
parent | Began implementing surveying (diff) | |
download | spacetraders-a1f4240f60b05fab7deb8a476def61f546aa0739.tar.gz spacetraders-a1f4240f60b05fab7deb8a476def61f546aa0739.tar.bz2 spacetraders-a1f4240f60b05fab7deb8a476def61f546aa0739.zip |
Activate sqlite WAL
-rw-r--r-- | database/db.js | 1 |
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; |