feat: add SQLite and PostgreSQL event queue adapters with migrations
This commit is contained in:
@@ -57,6 +57,7 @@ impl PostgresRepository {
|
||||
|
||||
pub async fn migrate(&self) -> Result<(), DomainError> {
|
||||
sqlx::migrate!("./migrations")
|
||||
.set_ignore_missing(true)
|
||||
.run(&self.pool)
|
||||
.await
|
||||
.map_err(|e| DomainError::InfrastructureError(format!("Migration failed: {}", e)))
|
||||
|
||||
Reference in New Issue
Block a user