2024-03-16 03:29:06 +01:00
|
|
|
use sea_orm_migration::prelude::*;
|
|
|
|
|
|
|
|
mod m20240316_000001_create_table;
|
2024-03-22 02:29:37 +01:00
|
|
|
mod m20240322_000001_create_relations;
|
2024-03-22 05:34:08 +01:00
|
|
|
mod m20240322_000002_add_likes_shares;
|
2024-03-22 05:59:24 +01:00
|
|
|
mod m20240322_000003_add_indexes;
|
2024-03-23 05:01:45 +01:00
|
|
|
mod m20240323_000001_add_user_configs;
|
|
|
|
mod m20240323_000002_add_simple_credentials;
|
2024-03-24 04:05:09 +01:00
|
|
|
mod m20240324_000001_add_addressing;
|
2024-03-25 05:07:58 +01:00
|
|
|
mod m20240325_000001_add_deliveries;
|
2024-03-25 21:18:12 +01:00
|
|
|
mod m20240325_000002_add_system_key;
|
2024-04-18 04:09:13 +02:00
|
|
|
mod m20240418_000001_add_statuses_and_reply_to;
|
2024-04-21 22:58:33 +02:00
|
|
|
mod m20240421_000001_add_attachments;
|
2024-04-24 05:19:39 +02:00
|
|
|
mod m20240424_000001_add_sensitive_field;
|
2024-03-16 03:29:06 +01:00
|
|
|
|
|
|
|
pub struct Migrator;
|
|
|
|
|
|
|
|
#[async_trait::async_trait]
|
|
|
|
impl MigratorTrait for Migrator {
|
|
|
|
fn migrations() -> Vec<Box<dyn MigrationTrait>> {
|
|
|
|
vec![
|
2024-03-22 02:29:37 +01:00
|
|
|
Box::new(m20240316_000001_create_table::Migration),
|
|
|
|
Box::new(m20240322_000001_create_relations::Migration),
|
2024-03-22 05:34:08 +01:00
|
|
|
Box::new(m20240322_000002_add_likes_shares::Migration),
|
2024-03-22 05:59:24 +01:00
|
|
|
Box::new(m20240322_000003_add_indexes::Migration),
|
2024-03-23 05:01:45 +01:00
|
|
|
Box::new(m20240323_000001_add_user_configs::Migration),
|
|
|
|
Box::new(m20240323_000002_add_simple_credentials::Migration),
|
2024-03-24 04:05:09 +01:00
|
|
|
Box::new(m20240324_000001_add_addressing::Migration),
|
2024-03-25 05:07:58 +01:00
|
|
|
Box::new(m20240325_000001_add_deliveries::Migration),
|
2024-03-25 21:18:12 +01:00
|
|
|
Box::new(m20240325_000002_add_system_key::Migration),
|
2024-04-18 04:09:13 +02:00
|
|
|
Box::new(m20240418_000001_add_statuses_and_reply_to::Migration),
|
2024-04-21 22:58:33 +02:00
|
|
|
Box::new(m20240421_000001_add_attachments::Migration),
|
2024-04-24 05:19:39 +02:00
|
|
|
Box::new(m20240424_000001_add_sensitive_field::Migration),
|
2024-03-16 03:29:06 +01:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|