From 0d2d62a501b810043356085322450e6c647774fc Mon Sep 17 00:00:00 2001 From: Eser DENIZ Date: Wed, 2 Apr 2025 23:48:32 +0200 Subject: [PATCH 1/3] fix: failed jobs on the nativephp database --- src/NativeServiceProvider.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/NativeServiceProvider.php b/src/NativeServiceProvider.php index 7e000a7..ed97081 100644 --- a/src/NativeServiceProvider.php +++ b/src/NativeServiceProvider.php @@ -172,6 +172,7 @@ public function rewriteDatabase() ]); config(['database.default' => 'nativephp']); + config(['queue.failed.database' => 'nativephp']); if (file_exists($databasePath)) { DB::statement('PRAGMA journal_mode=WAL;'); From fcaa588c050fedf3441a711efc37270635c4151c Mon Sep 17 00:00:00 2001 From: Eser DENIZ Date: Thu, 3 Apr 2025 10:28:52 +0200 Subject: [PATCH 2/3] fix: add batching database configuration for nativephp queue --- src/NativeServiceProvider.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/NativeServiceProvider.php b/src/NativeServiceProvider.php index ed97081..f65dd72 100644 --- a/src/NativeServiceProvider.php +++ b/src/NativeServiceProvider.php @@ -173,6 +173,7 @@ public function rewriteDatabase() config(['database.default' => 'nativephp']); config(['queue.failed.database' => 'nativephp']); + config(['queue.batching.database' => 'nativephp']); if (file_exists($databasePath)) { DB::statement('PRAGMA journal_mode=WAL;'); From cfdb381b3486df9a787a50a5234461e02ca5463c Mon Sep 17 00:00:00 2001 From: Eser DENIZ Date: Thu, 3 Apr 2025 12:01:17 +0200 Subject: [PATCH 3/3] fix: add database connection configuration for nativephp queue --- src/NativeServiceProvider.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/NativeServiceProvider.php b/src/NativeServiceProvider.php index f65dd72..a1910a4 100644 --- a/src/NativeServiceProvider.php +++ b/src/NativeServiceProvider.php @@ -174,6 +174,7 @@ public function rewriteDatabase() config(['database.default' => 'nativephp']); config(['queue.failed.database' => 'nativephp']); config(['queue.batching.database' => 'nativephp']); + config(['queue.connections.database.connection' => 'nativephp']); if (file_exists($databasePath)) { DB::statement('PRAGMA journal_mode=WAL;');