fix(migrate): use Statement::from_string in down method for SeaORM 2.0
This commit is contained in:
parent
eba75ee359
commit
3c8e9e3674
@ -20,10 +20,10 @@ impl MigrationTrait for Migration {
|
||||
async fn down(&self, manager: &SchemaManager) -> Result<(), DbErr> {
|
||||
manager
|
||||
.get_connection()
|
||||
.execute_raw(
|
||||
.execute_raw(sea_orm::Statement::from_string(
|
||||
sea_orm::DbBackend::Postgres,
|
||||
"ALTER TABLE room_message DROP COLUMN IF EXISTS model_id;",
|
||||
)
|
||||
))
|
||||
.await?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user