11 lines
303 B
Rust
11 lines
303 B
Rust
use domain::errors::DomainError;
|
|
use sqlx::SqlitePool;
|
|
|
|
pub(crate) async fn run(pool: &SqlitePool) -> Result<(), DomainError> {
|
|
sqlx::migrate!("./migrations")
|
|
.set_ignore_missing(true)
|
|
.run(pool)
|
|
.await
|
|
.map_err(|e| DomainError::InfrastructureError(e.to_string()))
|
|
}
|