Initial commit
This commit is contained in:
24
src/migration/mod.rs
Normal file
24
src/migration/mod.rs
Normal file
@@ -0,0 +1,24 @@
|
||||
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;
|
||||
|
||||
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),
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user