2025-05-09 08:48:06 +09:00
|
|
|
use sea_orm_migration::{prelude::*, schema::*};
|
|
|
|
|
|
|
|
#[derive(DeriveMigrationName)]
|
|
|
|
pub struct Migration;
|
|
|
|
use progress_pile_migration_core::m20220101_000001_create_table::*;
|
|
|
|
|
|
|
|
#[async_trait::async_trait]
|
|
|
|
impl MigrationTrait for Migration {
|
|
|
|
async fn up(&self, manager: &SchemaManager) -> Result<(), DbErr> {
|
2025-05-10 09:11:46 +09:00
|
|
|
User::up_server(manager).await
|
2025-05-09 08:48:06 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
async fn down(&self, manager: &SchemaManager) -> Result<(), DbErr> {
|
2025-05-10 09:11:46 +09:00
|
|
|
User::down_server(manager).await
|
2025-05-09 08:48:06 +09:00
|
|
|
}
|
|
|
|
}
|