no migration when config dump is selected
This commit is contained in:
parent
c8f1b63a9b
commit
1ef2f76b6c
@ -81,9 +81,11 @@ async fn main() -> std::io::Result<()> {
|
|||||||
.await
|
.await
|
||||||
.map_err(|e| io::Error::new(io::ErrorKind::Other, e.to_string()))?;
|
.map_err(|e| io::Error::new(io::ErrorKind::Other, e.to_string()))?;
|
||||||
|
|
||||||
if let Err(e) = handles::db_migrate(&pool).await {
|
if ARGS.dump_advanced.is_none() && ARGS.dump_config.is_none() {
|
||||||
panic!("{e}");
|
if let Err(e) = handles::db_migrate(&pool).await {
|
||||||
};
|
panic!("{e}");
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
if let Err(c) = run_args(&pool).await {
|
if let Err(c) = run_args(&pool).await {
|
||||||
exit(c);
|
exit(c);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user