docs: critical fixes needed + error handling for schema init

This commit is contained in:
2026-09-08 09:18:53 -07:00
parent 83e3206dcd
commit b564ad2a66
2 changed files with 270 additions and 2 deletions
+7 -2
View File
@@ -228,8 +228,13 @@ pub async fn start_server(port: u16, api_key: String, database_url: &str) -> Res
tracing::info!("Connected to database");
// Initialize schema
init_schema(&pool).await?;
tracing::info!("Schema initialized");
match init_schema(&pool).await {
Ok(_) => tracing::info!("Schema initialized"),
Err(e) => {
tracing::warn!("Schema init error (may be non-fatal): {}", e);
// Continue anyway - tables might exist
}
}
// Create workers
let vector_store = Arc::new(VectorStore::new(pool.clone()));