Update comment count migration script for #201

This commit is contained in:
TheAMM 2017-05-27 18:05:31 +03:00
parent 9cd6c506ae
commit 6f4aad56ab
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ def upgrade():
try:
op.add_column('sukebei_torrents', sa.Column('comment_count', sa.Integer(), nullable=False))
op.create_index(op.f('ix_sukebei_torrents_comment_count'), 'sukebei_torrents', ['comment_count'], unique=False)
op.create_index(op.f('ix_sukebei_torrents_comment_count'), 'sukebei_torrents', ['comment_count'], unique=False)
except (sa.exc.OperationalError, sa.exc.ProgrammingError):
print('Could not upgrade sukebei!')