From 30713786bf0c85728d14a275d80b82f308a462d0 Mon Sep 17 00:00:00 2001 From: ZhenYi <434836402@qq.com> Date: Sun, 26 Apr 2026 15:49:51 +0800 Subject: [PATCH] =?UTF-8?q?revert(db):=20remove=20check=5Fcompatibility=20?= =?UTF-8?q?=E2=80=94=20method=20not=20available=20in=20sqlx=200.8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The check_compatibility(false) method was added in the previous commit but does not exist in sqlx 0.8.x used by sea-orm 2.0. The warning "Failed to obtain server version" is cosmetic and does not affect functionality. --- libs/db/database.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/libs/db/database.rs b/libs/db/database.rs index 5e9ea96..b965878 100644 --- a/libs/db/database.rs +++ b/libs/db/database.rs @@ -31,7 +31,6 @@ impl AppDatabase { .connect_timeout(Duration::from_secs(connection_timeout)) .set_schema_search_path(schema_search_path) .sqlx_logging(false) - .check_compatibility(false) .to_owned(); let db_write = Database::connect(conn_cfg).await?; @@ -43,7 +42,6 @@ impl AppDatabase { .idle_timeout(Duration::from_secs(idle_timeout)) .max_lifetime(Duration::from_secs(max_lifetime)) .connect_timeout(Duration::from_secs(connection_timeout)) - .check_compatibility(false) .to_owned(); Some(Database::connect(conn_cfg).await?)