1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-12-22 14:40:00 +00:00

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

View file

@ -23,7 +23,7 @@ def upgrade():
try: try:
op.add_column('sukebei_torrents', sa.Column('comment_count', sa.Integer(), nullable=False)) 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): except (sa.exc.OperationalError, sa.exc.ProgrammingError):
print('Could not upgrade sukebei!') print('Could not upgrade sukebei!')