31 lines
1.2 KiB
Rust
31 lines
1.2 KiB
Rust
use sea_orm_migration::prelude::*;
|
|
|
|
mod m20260317_000001_create_artists;
|
|
mod m20260317_000002_create_albums;
|
|
mod m20260317_000003_create_tracks;
|
|
mod m20260317_000004_create_wanted_items;
|
|
mod m20260317_000005_create_download_queue;
|
|
mod m20260317_000006_create_search_cache;
|
|
mod m20260317_000007_unique_artist_album;
|
|
mod m20260317_000009_add_wanted_name;
|
|
mod m20260317_000010_add_wanted_mbid;
|
|
|
|
pub struct Migrator;
|
|
|
|
#[async_trait::async_trait]
|
|
impl MigratorTrait for Migrator {
|
|
fn migrations() -> Vec<Box<dyn MigrationTrait>> {
|
|
vec![
|
|
Box::new(m20260317_000001_create_artists::Migration),
|
|
Box::new(m20260317_000002_create_albums::Migration),
|
|
Box::new(m20260317_000003_create_tracks::Migration),
|
|
Box::new(m20260317_000004_create_wanted_items::Migration),
|
|
Box::new(m20260317_000005_create_download_queue::Migration),
|
|
Box::new(m20260317_000006_create_search_cache::Migration),
|
|
Box::new(m20260317_000007_unique_artist_album::Migration),
|
|
Box::new(m20260317_000009_add_wanted_name::Migration),
|
|
Box::new(m20260317_000010_add_wanted_mbid::Migration),
|
|
]
|
|
}
|
|
}
|