You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello guys, just updated to sea_orm version 1 I get the following error while I'm trying to apply migrations at startup
the code is:
I'm using the code inside the doc
let connect_options = sea_orm::ConnectOptions::new("postgres://root:root@localhost/database").set_schema_search_path("my_schema")// Override the default schema.to_owned();let db = sea_orm::Database::connect(connect_options).await.unwrap();
migration::Migrator::up(&db,None).await.unwrap();
the error is:
the trait bound `&sea_orm::DatabaseConnection: IntoSchemaManagerConnection<'_>` is not satisfiedthe following other types implement trait `IntoSchemaManagerConnection<'c>`:
&'c migration::sea_orm::DatabaseConnection &'c migration::sea_orm::DatabaseTransaction
SchemaManagerConnection<'c>required by a bound introduced by this callmigrator.rs(230, 12): required by a bound in `migration::MigratorTrait::up`
I've also tried to pass the db to up method with no pointer but still get the same error
I would appreciate a lot if you could help me to fix this.
The text was updated successfully, but these errors were encountered:
it seems that we should downgrade version below than 1 until they implement IntoSchemaManagerConnection trait for the for the database connection pointer.
thanks.
Hello guys, just updated to sea_orm version 1 I get the following error while I'm trying to apply migrations at startup
the code is:
I'm using the code inside the doc
the error is:
I've also tried to pass the db to
up
method with no pointer but still get the same errorI would appreciate a lot if you could help me to fix this.
The text was updated successfully, but these errors were encountered: