mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 14:30:01 +00:00
Update comment count migration script for #201
This commit is contained in:
parent
9cd6c506ae
commit
6f4aad56ab
|
@ -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!')
|
||||
|
||||
|
|
Loading…
Reference in a new issue