From bd715c0c71297ff5b45a57b7525a0766299ae433 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Fri, 8 Jan 2016 17:32:30 -0500 Subject: [PATCH] Add checksum and torrent info backfill --- ...3223_add_backfill_for_torrent_shas_and_.py | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 data/migrations/versions/956a0833223_add_backfill_for_torrent_shas_and_.py 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 ###