move migration to run_args
This commit is contained in:
parent
33e7bed1c2
commit
04955e14c6
@ -81,12 +81,6 @@ 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 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 {
|
if let Err(c) = run_args(&pool).await {
|
||||||
exit(c);
|
exit(c);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user