Skip to content

Commit 93543a3

Browse files
committed
chore(tests): scope migration recovery journal assertion
1 parent ff7268b commit 93543a3

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

‎packages/db/script-migrations/0016_backfill_search_vectors.integration.ts‎

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -384,19 +384,11 @@ describe('search projection upgrade in PostgreSQL', () => {
384384
}
385385
await runScriptMigrations(sql)
386386
expect(
387-
await sql`SELECT name FROM script_migrations WHERE name >= '0015' ORDER BY name`
387+
await sql`SELECT name FROM script_migrations
388+
WHERE name IN ('0015_backfill_embedding_search', '0016_backfill_search_vectors') ORDER BY name`
388389
).toEqual([
389390
{ name: '0015_backfill_embedding_search' },
390391
{ name: '0016_backfill_search_vectors' },
391-
{ name: '0017_index_search_documents' },
392-
{ name: '0018_repair_workspace_file_content_revision' },
393-
{ name: '0019_tin_keyword_projection' },
394-
{ name: '0021_embedding_search_connector' },
395-
{ name: '0022_projection_source_acl_backfill' },
396-
{ name: '0023_projection_acl_skip_unfilled' },
397-
{ name: '0024_knowledge_projection_async' },
398-
{ name: '0025_scope_keyword_projections' },
399-
{ name: '0026_user_table_schema_for_write' },
400392
])
401393
const [{ complete }] = await sql`SELECT count(*)::int AS complete FROM embedding e
402394
JOIN embedding_search s ON s.id = e.id JOIN embedding_keyword_search k ON k.id = e.id

0 commit comments

Comments
 (0)