diff --git a/apps/api/tests/migrations/test_schema_contract.py b/apps/api/tests/migrations/test_schema_contract.py index 8c8fc6b2..735ed05c 100644 --- a/apps/api/tests/migrations/test_schema_contract.py +++ b/apps/api/tests/migrations/test_schema_contract.py @@ -435,26 +435,6 @@ def test_should_add_per_channel_map_unit_bm25_statistics( "content_document_count": "YES", "content_total_length": "YES", } -def test_should_create_content_trigram_index_for_regex_search( - migrated_head_engine: Engine, -) -> None: - with migrated_head_engine.begin() as connection: - index_definition = connection.execute( - text( - """ - SELECT pg_get_indexdef(indexes.indexrelid) - FROM pg_index AS indexes - JOIN pg_class AS classes ON classes.oid = indexes.indexrelid - JOIN pg_namespace AS namespaces ON namespaces.oid = classes.relnamespace - WHERE namespaces.nspname = current_schema() - AND classes.relname = 'idx_document_chunks_content_trgm' - """ - ) - ).scalar_one() - - definition = str(index_definition) - assert "USING gin (content gin_trgm_ops)" in definition - assert "WHERE (content IS NOT NULL)" in definition def test_should_upgrade_with_a_caller_owned_connection(