From 6f4aad56abc28f498f0c57f882d6993dd0dce83c Mon Sep 17 00:00:00 2001 From: TheAMM Date: Sat, 27 May 2017 18:05:31 +0300 Subject: [PATCH] Update comment count migration script for #201 --- .../versions/2bceb2cb4d7c_add_comment_count_to_torrent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/versions/2bceb2cb4d7c_add_comment_count_to_torrent.py b/migrations/versions/2bceb2cb4d7c_add_comment_count_to_torrent.py index 49b949a..aa88a8e 100644 --- a/migrations/versions/2bceb2cb4d7c_add_comment_count_to_torrent.py +++ b/migrations/versions/2bceb2cb4d7c_add_comment_count_to_torrent.py @@ -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!')