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-05-05 16:26:48 +02:00
|
|
|
mod m20240505_002524_user_follow_relation;
|
2024-06-27 05:13:38 +02:00
|
|
|
mod m20240626_030922_store_ap_json_in_posts;
|
2024-07-21 19:37:08 +02:00
|
|
|
mod m20240719_235452_user_ap_column;
|
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-05-05 16:26:48 +02:00
|
|
|
Box::new(m20240505_002524_user_follow_relation::Migration),
|
2024-06-27 05:13:38 +02:00
|
|
|
Box::new(m20240626_030922_store_ap_json_in_posts::Migration),
|
2024-07-21 19:37:08 +02:00
|
|
|
Box::new(m20240719_235452_user_ap_column::Migration),
|
2024-04-18 01:47:18 +02:00
|
|
|
]
|
2024-04-17 20:25:22 +02:00
|
|
|
}
|
|
|
|
|
}
|