OneLauncher-Cracked/packages/migration/src/lib.rs
Wyvest 87cb86943c Add bundle update checking/apply and API
Introduce full bundle update management: adds bundle_updates module with checking, apply flow, per-cluster locking, subscription inference, and apply helpers for additions/updates/removals (plus unit and e2e test scaffold). Exposes new IPC/API methods (download_package_from_bundle, update_bundle_packages, is_bundle_syncing) and integrates bundle tracking in desktop commands. Adds bundle DAO/entity and migrations to support bundle_packages and bundle_overrides, updates related package/DAO/modpack code, and minor frontend bindings/components/hooks to surface the new functionality. Also adds sea-orm as a dev-dependency for the desktop crate.

Co-Authored-By: Jacob <contact@kath.lol>
2026-02-23 22:36:24 -05:00

18 lines
517 B
Rust

pub use sea_orm_migration::prelude::*;
mod m20220101_000001_create_table;
mod m20260222_000001_create_bundle_packages;
mod m20260223_000001_create_bundle_overrides_table;
pub struct Migrator;
#[async_trait::async_trait]
impl MigratorTrait for Migrator {
fn migrations() -> Vec<Box<dyn MigrationTrait>> {
vec![
Box::new(m20220101_000001_create_table::Migration),
Box::new(m20260222_000001_create_bundle_packages::Migration),
Box::new(m20260223_000001_create_bundle_overrides_table::Migration),
]
}
}