feat: postgres migration schema v2

This primarily deals with correctly handling tag values.
This commit is contained in:
Greg Heartsfield
2023-01-27 20:13:47 -06:00
parent 53f83aa923
commit 57e1b53c13
6 changed files with 155 additions and 10 deletions
+3 -3
View File
@@ -63,9 +63,9 @@ async fn build_postgres_pool(settings: &Settings, metrics: NostrMetrics) -> Post
.await
.unwrap();
let repo = PostgresRepo::new(pool, metrics);
if let Ok(version) = repo.migrate_up().await {
info!("Postgres migration completed, at v{}", version);
}
// Panic on migration failure
let version = repo.migrate_up().await.unwrap();
info!("Postgres migration completed, at v{}", version);
repo
}