From 56cbc4109a9311a493d0ea6670013f19eee91836 Mon Sep 17 00:00:00 2001 From: Thorsten Bus Date: Tue, 31 Mar 2026 09:20:03 +0200 Subject: [PATCH] fix(db): enable SQLite WAL mode and busy_timeout for concurrent access --- config/database.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/database.php b/config/database.php index df933e7..4d04450 100644 --- a/config/database.php +++ b/config/database.php @@ -37,8 +37,8 @@ 'database' => env('DB_DATABASE', database_path('database.sqlite')), 'prefix' => '', 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true), - 'busy_timeout' => null, - 'journal_mode' => null, + 'busy_timeout' => 5000, + 'journal_mode' => 'wal', 'synchronous' => null, 'transaction_mode' => 'DEFERRED', ],