2024-03-16 03:29:06 +01:00
|
|
|
use sea_orm_migration::prelude::*;
|
|
|
|
|
|
|
|
mod m20240316_000001_create_table;
|
2024-03-22 02:29:37 +01:00
|
|
|
mod m20240322_000001_create_relations;
|
2024-03-16 03:29:06 +01:00
|
|
|
|
|
|
|
pub struct Migrator;
|
|
|
|
|
|
|
|
#[async_trait::async_trait]
|
|
|
|
impl MigratorTrait for Migrator {
|
|
|
|
fn migrations() -> Vec<Box<dyn MigrationTrait>> {
|
|
|
|
vec![
|
2024-03-22 02:29:37 +01:00
|
|
|
Box::new(m20240316_000001_create_table::Migration),
|
|
|
|
Box::new(m20240322_000001_create_relations::Migration),
|
2024-03-16 03:29:06 +01:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|