trifid/trifid-api/trifid_api_migration/src/lib.rs

49 lines
2.5 KiB
Rust
Raw Normal View History

2023-04-02 17:06:16 +00:00
pub use sea_orm_migration::prelude::*;
pub struct Migrator;
pub mod m20230402_162601_create_table_users;
2023-04-02 19:25:52 +00:00
pub mod m20230402_183515_create_table_magic_links;
2023-04-02 23:12:08 +00:00
pub mod m20230402_213712_create_table_session_tokens;
pub mod m20230402_232316_create_table_organizations;
pub mod m20230402_233043_create_table_api_keys;
pub mod m20230402_233047_create_table_api_keys_scopes;
2023-04-03 20:42:52 +00:00
pub mod m20230402_234025_create_table_totp_authenticators;
pub mod m20230403_002256_create_table_auth_tokens;
pub mod m20230403_142517_create_table_signing_cas;
pub mod m20230403_173431_create_table_networks;
2023-04-04 13:44:19 +00:00
mod m20230404_133809_create_table_roles;
mod m20230404_133813_create_table_firewall_rules;
2023-04-27 17:42:48 +00:00
mod m20230427_170037_create_table_hosts;
mod m20230427_171517_create_table_hosts_static_addresses;
mod m20230427_171529_create_table_hosts_config_overrides;
2023-05-11 17:13:30 +00:00
mod m20230511_120511_create_table_host_enrollment_codes;
2023-08-16 03:27:52 +00:00
mod m20230815_225520_create_table_keystore_hosts;
mod m20230815_230218_create_table_keystore_entries;
2023-04-02 17:06:16 +00:00
#[async_trait::async_trait]
impl MigratorTrait for Migrator {
fn migrations() -> Vec<Box<dyn MigrationTrait>> {
vec![
2023-04-02 19:25:52 +00:00
Box::new(m20230402_162601_create_table_users::Migration),
Box::new(m20230402_183515_create_table_magic_links::Migration),
2023-04-02 23:12:08 +00:00
Box::new(m20230402_213712_create_table_session_tokens::Migration),
Box::new(m20230402_232316_create_table_organizations::Migration),
Box::new(m20230402_233043_create_table_api_keys::Migration),
Box::new(m20230402_233047_create_table_api_keys_scopes::Migration),
Box::new(m20230402_234025_create_table_totp_authenticators::Migration),
Box::new(m20230403_002256_create_table_auth_tokens::Migration),
2023-04-03 17:28:12 +00:00
Box::new(m20230403_142517_create_table_signing_cas::Migration),
2023-04-03 20:42:52 +00:00
Box::new(m20230403_173431_create_table_networks::Migration),
2023-04-04 13:44:19 +00:00
Box::new(m20230404_133809_create_table_roles::Migration),
Box::new(m20230404_133813_create_table_firewall_rules::Migration),
2023-04-27 17:42:48 +00:00
Box::new(m20230427_170037_create_table_hosts::Migration),
Box::new(m20230427_171517_create_table_hosts_static_addresses::Migration),
Box::new(m20230427_171529_create_table_hosts_config_overrides::Migration),
2023-05-11 17:13:30 +00:00
Box::new(m20230511_120511_create_table_host_enrollment_codes::Migration),
2023-08-16 03:27:52 +00:00
Box::new(m20230815_225520_create_table_keystore_hosts::Migration),
Box::new(m20230815_230218_create_table_keystore_entries::Migration),
2023-04-02 17:06:16 +00:00
]
}
}