2024-10-16 18:03:38 +00:00
|
|
|
#![allow(elided_lifetimes_in_paths)]
|
|
|
|
#![allow(clippy::wildcard_imports)]
|
|
|
|
pub use sea_orm_migration::prelude::*;
|
|
|
|
|
|
|
|
mod m20220101_000001_users;
|
|
|
|
mod m20231103_114510_notes;
|
|
|
|
|
2024-10-16 18:11:34 +00:00
|
|
|
mod m20241016_180911_servers;
|
2024-10-16 18:03:38 +00:00
|
|
|
pub struct Migrator;
|
|
|
|
|
|
|
|
#[async_trait::async_trait]
|
|
|
|
impl MigratorTrait for Migrator {
|
|
|
|
fn migrations() -> Vec<Box<dyn MigrationTrait>> {
|
|
|
|
vec![
|
|
|
|
Box::new(m20220101_000001_users::Migration),
|
|
|
|
Box::new(m20231103_114510_notes::Migration),
|
2024-10-16 18:11:34 +00:00
|
|
|
Box::new(m20241016_180911_servers::Migration),
|
2024-10-16 18:03:38 +00:00
|
|
|
]
|
|
|
|
}
|
2024-10-16 18:11:34 +00:00
|
|
|
}
|