2023-10-09 18:49:57 +00:00
|
|
|
pub use sea_orm_migration::prelude::*;
|
|
|
|
|
|
|
|
|
|
mod m20220101_000001_create_user;
|
|
|
|
|
mod m20231009_181004_create_music_folder;
|
2023-10-09 19:24:32 +00:00
|
|
|
mod m20231009_181104_create_cover_art;
|
|
|
|
|
mod m20231009_181204_create_artist;
|
2023-10-09 18:49:57 +00:00
|
|
|
mod m20231009_181346_create_album;
|
2023-10-09 19:24:32 +00:00
|
|
|
mod m20231009_185712_create_track;
|
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![
|
|
|
|
|
Box::new(m20220101_000001_create_user::Migration),
|
|
|
|
|
Box::new(m20231009_181004_create_music_folder::Migration),
|
2023-10-09 19:24:32 +00:00
|
|
|
Box::new(m20231009_181104_create_cover_art::Migration),
|
|
|
|
|
Box::new(m20231009_181204_create_artist::Migration),
|
2023-10-09 18:49:57 +00:00
|
|
|
Box::new(m20231009_181346_create_album::Migration),
|
2023-10-09 19:24:32 +00:00
|
|
|
Box::new(m20231009_185712_create_track::Migration),
|
2023-10-09 18:49:57 +00:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|