diff --git a/data/migrations/versions/956a0833223_add_backfill_for_torrent_shas_and_.py b/data/migrations/versions/956a0833223_add_backfill_for_torrent_shas_and_.py new file mode 100644 index 000000000..bec70447b --- /dev/null +++ b/data/migrations/versions/956a0833223_add_backfill_for_torrent_shas_and_.py @@ -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 ###