From 1ef2f76b6ce6cc5ce7714682ce5fbdf225c82a23 Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Mon, 1 Jul 2024 07:43:12 +0200 Subject: [PATCH] no migration when config dump is selected --- ffplayout/src/main.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ffplayout/src/main.rs b/ffplayout/src/main.rs index 7fb5372b..1cec61ec 100644 --- a/ffplayout/src/main.rs +++ b/ffplayout/src/main.rs @@ -81,9 +81,11 @@ async fn main() -> std::io::Result<()> { .await .map_err(|e| io::Error::new(io::ErrorKind::Other, e.to_string()))?; - if let Err(e) = handles::db_migrate(&pool).await { - panic!("{e}"); - }; + if ARGS.dump_advanced.is_none() && ARGS.dump_config.is_none() { + if let Err(e) = handles::db_migrate(&pool).await { + panic!("{e}"); + }; + } if let Err(c) = run_args(&pool).await { exit(c);