Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
fix(migrations): restore published v248 payload
garrytan5d75b810f17a
diff --git a/src/core/schema-migrations/v248-segmented-page-storage.ts b/src/core/schema-migrations/v248-segmented-page-storage.tsindex 8c90d73338..381d3604a3 100644--- a/src/core/schema-migrations/v248-segmented-page-storage.ts+++ b/src/core/schema-migrations/v248-segmented-page-storage.ts@@ -110,7 +110,7 @@ export const v248: Migration = {// Search's visibility predicate reads the generation columns; without their statistics Postgres prices it at 0.5%// and vector search sorts every candidate instead of walking its HNSW index (projection-statistics.ts).if (engine.kind === 'postgres') {- await engine.runMigration(248, 'ANALYZE pages(body_generation); ANALYZE content_chunks(body_generation);');+ await engine.runMigration(248, 'ANALYZE pages(body_generation); ANALYZE content_chunks(body_generation, retired_generation);');}},};diff --git a/test/fixtures/goldens/migrations/records.json b/test/fixtures/goldens/migrations/records.jsonindex 7511427e1d..32ac4d4e6c 100644--- a/test/fixtures/goldens/migrations/records.json+++ b/test/fixtures/goldens/migrations/records.json@@ -3814,7 +3814,7 @@"quietMigrationNotices","tableRows"],- "sha256": "2fb35d2d13c92c07dfd2f002db579956d1fea8869a908210f6668911fa6ddd89"+ "sha256": "f534fe8c1c2a21a072644ff97155d6298e87245cf293fbf25b94c0713f6f4a66"},"idempotent": true,"name": "segmented_page_storage",