2023-10-09 18:49:57 +00:00
|
|
|
pub use sea_orm_migration::prelude::*;
|
|
|
|
|
|
2023-10-10 18:25:02 +00:00
|
|
|
mod m000001_create_user;
|
|
|
|
|
mod m000002_create_music_folder;
|
|
|
|
|
mod m000003_create_cover_art;
|
|
|
|
|
mod m000004_create_artist;
|
|
|
|
|
mod m000005_create_genre;
|
|
|
|
|
mod m000006_create_album;
|
|
|
|
|
mod m000007_create_track;
|
2023-10-14 16:03:20 +00:00
|
|
|
mod m000008_create_user_session;
|
2023-10-09 18:49:57 +00:00
|
|
|
|
|
|
|
|
pub struct Migrator;
|
|
|
|
|
|
|
|
|
|
#[async_trait::async_trait]
|
|
|
|
|
impl MigratorTrait for Migrator {
|
|
|
|
|
fn migrations() -> Vec<Box<dyn MigrationTrait>> {
|
|
|
|
|
vec![
|
2023-10-10 18:25:02 +00:00
|
|
|
Box::new(m000001_create_user::Migration),
|
|
|
|
|
Box::new(m000002_create_music_folder::Migration),
|
|
|
|
|
Box::new(m000003_create_cover_art::Migration),
|
|
|
|
|
Box::new(m000004_create_artist::Migration),
|
|
|
|
|
Box::new(m000005_create_genre::Migration),
|
|
|
|
|
Box::new(m000006_create_album::Migration),
|
|
|
|
|
Box::new(m000007_create_track::Migration),
|
2023-10-14 16:03:20 +00:00
|
|
|
Box::new(m000008_create_user_session::Migration),
|
2023-10-09 18:49:57 +00:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|