revert(db): remove check_compatibility — method not available in sqlx 0.8
Some checks are pending
CI / Frontend Build (push) Blocked by required conditions
CI / Rust Lint & Check (push) Waiting to run
CI / Rust Tests (push) Waiting to run
CI / Frontend Lint & Type Check (push) Waiting to run

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.
This commit is contained in:
ZhenYi 2026-04-26 15:49:51 +08:00
parent 8a23a22c9b
commit 30713786bf

View File

@ -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?)