Remove create extension query from migration

This commit is contained in:
Sida Chen 2019-03-07 14:16:09 -05:00
parent 7985167411
commit 9533dc2981

View file

@ -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')