feat: create bal stats table if not present
All checks were successful
/ test (push) Successful in 10m29s
All checks were successful
/ test (push) Successful in 10m29s
This commit is contained in:
parent
bc7feb09d4
commit
ff94003595
1 changed files with 4 additions and 0 deletions
|
|
@ -103,6 +103,10 @@ pub async fn create_tables<C>(db_conn: &C) -> Result<(), DbErr>
|
|||
log::error!(target: "database", "Error while creating bal table: {err:?}");
|
||||
return Err(err);
|
||||
}
|
||||
if let Err(err) = db_conn.execute(builder.build(schema.create_table_from_entity(crate::entities::prelude::BalStats).if_not_exists())).await {
|
||||
log::error!(target: "database", "Error while creating bal stats table: {err:?}");
|
||||
return Err(err);
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue