try fixing migration

This commit is contained in:
Son Nguyen Kim 2021-08-04 09:33:02 +02:00
parent 9eb3c7cf2c
commit 8640f830f2
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('alias', sa.Column('ts_vector', app.models.TSVector(), sa.Computed("to_tsvector('english', note)", persisted=True), nullable=True))
op.add_column('alias', sa.Column('ts_vector', "ts_vector", sa.Computed("to_tsvector('english', note)", persisted=True), nullable=True))
op.create_index('ix_video___ts_vector__', 'alias', ['ts_vector'], unique=False, postgresql_using='gin')
# ### end Alembic commands ###