Merge pull request #1129 from coreos-inc/backfill

Add checksum and torrent info backfill
This commit is contained in:
josephschorr 2016-01-12 14:20:58 -05:00
commit 047c2c2c0f

View file

@ -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 ###