use sea_orm_migration::prelude::*; #[derive(DeriveMigrationName)] pub struct Migration; #[async_trait::async_trait] impl MigrationTrait for Migration { async fn up(&self, manager: &SchemaManager) -> Result<(), DbErr> { let sql = include_str!("sql/m20250628_000081_add_message_edit_history.sql"); super::execute_sql(manager, sql).await } async fn down(&self, manager: &SchemaManager) -> Result<(), DbErr> { manager .drop_table( Table::drop() .table(Alias::new("room_message_edit_history")) .to_owned(), ) .await } }