2024-04-17 20:25:22 +02:00
|
|
|
pub use sea_orm_migration::prelude::*;
|
|
|
|
|
|
2024-04-18 01:47:18 +02:00
|
|
|
mod m20220101_000001_post_table;
|
|
|
|
|
mod m20240417_230111_user_table;
|
|
|
|
|
mod m20240417_233430_post_user_keys;
|
2024-04-17 20:25:22 +02:00
|
|
|
|
|
|
|
|
pub struct Migrator;
|
|
|
|
|
|
|
|
|
|
#[async_trait::async_trait]
|
|
|
|
|
impl MigratorTrait for Migrator {
|
|
|
|
|
fn migrations() -> Vec<Box<dyn MigrationTrait>> {
|
2024-04-18 01:47:18 +02:00
|
|
|
vec![
|
|
|
|
|
Box::new(m20220101_000001_post_table::Migration),
|
|
|
|
|
Box::new(m20240417_230111_user_table::Migration),
|
|
|
|
|
Box::new(m20240417_233430_post_user_keys::Migration),
|
|
|
|
|
]
|
2024-04-17 20:25:22 +02:00
|
|
|
}
|
|
|
|
|
}
|