Alisa/crates/migration/src/lib.rs

21 lines
635 B
Rust
Raw Normal View History

2024-07-05 11:16:21 +02:00
pub use sea_orm_migration::prelude::*;
pub struct Migrator;
2024-07-05 15:14:36 +02:00
mod m20240705_100914_create_user;
2024-07-08 12:55:11 +02:00
mod m20240708_085852_create_admin_user;
2024-07-09 18:50:42 +02:00
mod m20240709_095319_create_license_group;
mod m20240709_095325_create_license;
2024-07-05 15:14:36 +02:00
2024-07-05 11:16:21 +02:00
#[async_trait::async_trait]
impl MigratorTrait for Migrator {
fn migrations() -> Vec<Box<dyn MigrationTrait>> {
2024-07-08 12:55:11 +02:00
vec![
Box::new(m20240705_100914_create_user::Migration),
Box::new(m20240708_085852_create_admin_user::Migration),
2024-07-09 18:50:42 +02:00
Box::new(m20240709_095319_create_license_group::Migration),
Box::new(m20240709_095325_create_license::Migration),
2024-07-08 12:55:11 +02:00
]
2024-07-05 11:16:21 +02:00
}
}