diff --git a/src/NativeServiceProvider.php b/src/NativeServiceProvider.php index f6eb5b3..f966db7 100644 --- a/src/NativeServiceProvider.php +++ b/src/NativeServiceProvider.php @@ -4,6 +4,7 @@ use Illuminate\Console\Application as Artisan; use Illuminate\Support\Arr; +use Illuminate\Support\Facades\DB; use Native\Laravel\Commands\FreshCommand; use Native\Laravel\Commands\LoadPHPConfigurationCommand; use Native\Laravel\Commands\LoadStartupConfigurationCommand; @@ -122,6 +123,9 @@ public function rewriteDatabase() ]]); config(['database.default' => 'nativephp']); + + DB::statement('PRAGMA journal_mode=WAL;'); + DB::statement('PRAGMA busy_timeout=5000;'); } public function removeDatabase()