mirror of
https://github.com/tsirysndr/music-player.git
synced 2026-01-08 20:58:07 -05:00
fix migrations in android
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -4422,7 +4422,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "music-player-migration"
|
||||
version = "0.1.8"
|
||||
version = "0.1.9"
|
||||
dependencies = [
|
||||
"clap",
|
||||
"dotenv",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "music-player-migration"
|
||||
version = "0.1.8"
|
||||
version = "0.1.9"
|
||||
edition = "2021"
|
||||
repository = "https://github.com/tsirysndr/music-player"
|
||||
license = "MIT"
|
||||
|
||||
@@ -41,7 +41,7 @@ pub async fn run() {
|
||||
match env::consts::OS {
|
||||
"android" => {
|
||||
let db = &Database::connect(&url).await.unwrap();
|
||||
run_migrate(Migrator, db, None, false).await.unwrap();
|
||||
Migrator::up(&db, None).await.unwrap();
|
||||
}
|
||||
_ => {
|
||||
cli::run_cli(Migrator).await;
|
||||
|
||||
Reference in New Issue
Block a user