mirror of
https://github.com/ProjectSynthoria/SynthoriaArchive.git
synced 2025-03-12 15:26:56 +02:00
Update comment count migration script for #201
This commit is contained in:
parent
9cd6c506ae
commit
6f4aad56ab
1 changed files with 1 additions and 1 deletions
|
@ -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!')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue