From 9533dc29812d80a3e7a57fe610fe475c9171011c Mon Sep 17 00:00:00 2001 From: Sida Chen Date: Thu, 7 Mar 2019 14:16:09 -0500 Subject: [PATCH] Remove create extension query from migration --- .../e2894a3a3c19_add_full_text_search_indexing_for_repo_.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/data/migrations/versions/e2894a3a3c19_add_full_text_search_indexing_for_repo_.py b/data/migrations/versions/e2894a3a3c19_add_full_text_search_indexing_for_repo_.py index 281e148c8..36304ccfe 100644 --- a/data/migrations/versions/e2894a3a3c19_add_full_text_search_indexing_for_repo_.py +++ b/data/migrations/versions/e2894a3a3c19_add_full_text_search_indexing_for_repo_.py @@ -15,9 +15,6 @@ import sqlalchemy as sa from sqlalchemy.dialects import mysql def upgrade(tables, tester): - if op.get_bind().engine.name == 'postgresql': - op.execute('CREATE EXTENSION IF NOT EXISTS pg_trgm') - # ### commands auto generated by Alembic - please adjust! ### op.create_index('repository_description__fulltext', 'repository', ['description'], unique=False, postgresql_using='gin', postgresql_ops={'description': 'gin_trgm_ops'}, mysql_prefix='FULLTEXT') op.create_index('repository_name__fulltext', 'repository', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'}, mysql_prefix='FULLTEXT')