DocuSphere/crates/migration/src/lib.rs

18 lines
512 B
Rust

pub use sea_orm_migration::prelude::*;
mod m20220101_000001_create_table;
mod m20241003_175716_table_users;
mod m20241003_175719_table_documents;
pub struct Migrator;
#[async_trait::async_trait]
impl MigratorTrait for Migrator {
fn migrations() -> Vec<Box<dyn MigrationTrait>> {
vec![
Box::new(m20220101_000001_create_table::Migration),
Box::new(m20241003_175716_table_users::Migration),
Box::new(m20241003_175719_table_documents::Migration),
]
}
}