Add checksum and torrent info backfill
This commit is contained in:
parent
fb43c1fb10
commit
bd715c0c71
1 changed files with 26 additions and 0 deletions
|
@ -0,0 +1,26 @@
|
||||||
|
"""Add backfill for torrent shas and checksums
|
||||||
|
|
||||||
|
Revision ID: 956a0833223
|
||||||
|
Revises: 23ca04d0bc8e
|
||||||
|
Create Date: 2016-01-08 17:11:07.261123
|
||||||
|
|
||||||
|
"""
|
||||||
|
|
||||||
|
# revision identifiers, used by Alembic.
|
||||||
|
revision = '956a0833223'
|
||||||
|
down_revision = '23ca04d0bc8e'
|
||||||
|
|
||||||
|
from app import app
|
||||||
|
from util.migrate.backfill_content_checksums_and_torrent_pieces import backfill_content_checksums_and_torrent_pieces
|
||||||
|
|
||||||
|
|
||||||
|
def upgrade(tables):
|
||||||
|
### commands auto generated by Alembic - please adjust! ###
|
||||||
|
backfill_content_checksums_and_torrent_pieces(app.config['TORRENT_PIECE_SIZE'])
|
||||||
|
### end Alembic commands ###
|
||||||
|
|
||||||
|
|
||||||
|
def downgrade(tables):
|
||||||
|
### commands auto generated by Alembic - please adjust! ###
|
||||||
|
pass
|
||||||
|
### end Alembic commands ###
|
Reference in a new issue