migration/
lib.rs

1#![allow(clippy::needless_return)]
2
3pub use sea_orm_migration::prelude::*;
4
5mod m20221117_173031_users;
6mod m20221117_173054_servers;
7mod m20221117_173057_channels;
8mod m20221117_173102_members;
9mod m20221117_173105_roles;
10mod m20221117_173108_member_roles;
11mod m20221117_173116_user_settings;
12mod m20221117_173118_user_servers;
13mod m20230110_235226_messages;
14
15pub struct Migrator;
16
17#[async_trait::async_trait]
18impl MigratorTrait for Migrator {
19    fn migrations() -> Vec<Box<dyn MigrationTrait>> {
20        vec![
21            Box::new(m20221117_173031_users::Migration),
22            Box::new(m20221117_173054_servers::Migration),
23            Box::new(m20221117_173057_channels::Migration),
24            Box::new(m20221117_173102_members::Migration),
25            Box::new(m20221117_173105_roles::Migration),
26            Box::new(m20221117_173108_member_roles::Migration),
27            Box::new(m20221117_173116_user_settings::Migration),
28            Box::new(m20221117_173118_user_servers::Migration),
29            Box::new(m20230110_235226_messages::Migration),
30        ]
31    }
32}