17 lines
512 B
Rust
17 lines
512 B
Rust
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> {
|
|
// 占位迁移:原始迁移文件缺失,但已应用。此处为空实现以满足迁移链完整性。
|
|
Ok(())
|
|
}
|
|
|
|
async fn down(&self, _manager: &SchemaManager) -> Result<(), DbErr> {
|
|
// 占位迁移,无需回滚实际变更
|
|
Ok(())
|
|
}
|
|
} |