revert(db): remove check_compatibility — method not available in sqlx 0.8
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:
parent
8a23a22c9b
commit
30713786bf
@ -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?)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user