From ce15d567ae2bcd839d8f3536d4dcd6119664f2c0 Mon Sep 17 00:00:00 2001 From: yueyang <2495544247@qq.com> Date: Tue, 22 Sep 2026 16:05:04 +0800 Subject: [PATCH] fix: route jushuitan production storage --- compose.jiangling.yml | 1 + tests/CreatesApplication.php | 1 + tests/Unit/Deployment/BusinessMirrorScheduleTest.php | 1 + 3 files changed, 3 insertions(+) diff --git a/compose.jiangling.yml b/compose.jiangling.yml index b0971166..31d22d45 100644 --- a/compose.jiangling.yml +++ b/compose.jiangling.yml @@ -96,6 +96,7 @@ services: environment: RUN_MIGRATIONS: ${RUN_MIGRATIONS:-0} SUPPLIER_PAYABLE_MAINTENANCE_DB_CONNECTION: business_mirror + JST_DB_CONNECTION: business_mirror env_file: - ./runtime/qiniu-storage.env - ./runtime/clickhouse.env diff --git a/tests/CreatesApplication.php b/tests/CreatesApplication.php index b64b210c..a838f7a4 100644 --- a/tests/CreatesApplication.php +++ b/tests/CreatesApplication.php @@ -40,6 +40,7 @@ trait CreatesApplication config([ 'database.connections.business_mirror' => config('database.connections.sqlite'), 'database.supplier_payable_maintenance_connection' => 'sqlite', + 'jushuitan.connection' => 'business_mirror', 'upstream_mirrors.connection' => 'business_mirror', ]); $app->make(DatabaseManager::class)->purge('business_mirror'); diff --git a/tests/Unit/Deployment/BusinessMirrorScheduleTest.php b/tests/Unit/Deployment/BusinessMirrorScheduleTest.php index 2d0d14c8..48f7f8ae 100644 --- a/tests/Unit/Deployment/BusinessMirrorScheduleTest.php +++ b/tests/Unit/Deployment/BusinessMirrorScheduleTest.php @@ -103,6 +103,7 @@ class BusinessMirrorScheduleTest extends TestCase 'SUPPLIER_PAYABLE_MAINTENANCE_DB_CONNECTION: business_mirror', $service, ); + $this->assertStringContainsString('JST_DB_CONNECTION: business_mirror', $service); } public function test_tunnel_task_accepts_both_missing_task_exception_types(): void