chore: stabilize current head before Phase 10a QC

This commit is contained in:
2026-05-10 23:00:25 +01:00
parent c95a5da077
commit b463c32f17
24 changed files with 238 additions and 89 deletions

View File

@@ -553,7 +553,9 @@ async fn run_migrations_slice(pool: &SqlitePool, migrations: &[(i64, &str, &str)
)
.execute(pool)
.await
.map_err(|e| MagnotiaError::StorageError(format!("Schema version table creation failed: {e}")))?;
.map_err(|e| {
MagnotiaError::StorageError(format!("Schema version table creation failed: {e}"))
})?;
let current: i64 = sqlx::query_scalar("SELECT COALESCE(MAX(version), 0) FROM schema_version")
.fetch_one(pool)
@@ -1178,7 +1180,8 @@ mod tests {
.map(|r| r.get::<String, _>("detail"))
.collect();
assert!(
plan.iter().any(|row| row.contains("idx_transcripts_profile_created")),
plan.iter()
.any(|row| row.contains("idx_transcripts_profile_created")),
"planner should use the composite index, got plan: {plan:?}",
);
}