Add main_transcoding_progress column migration
[mediagoblin.git] / mediagoblin / db / migrations / versions / cc3651803714_add_main_transcoding_progress_column_to_.py
CommitLineData
beb9121c 1"""add main transcoding progress column to MediaEntry
2
3Revision ID: cc3651803714
4Revises: 228916769bd2
5Create Date: 2017-08-21 23:33:01.401589
6
7"""
8
9# revision identifiers, used by Alembic.
10revision = 'cc3651803714'
11down_revision = '228916769bd2'
12branch_labels = None
13depends_on = None
14
15from alembic import op
16import sqlalchemy as sa
17
18
19def upgrade():
20 """
21 Addition of main_transcoding_progress is required to save the progress of the
22 default resolution (other than the total progress of the video).
23 """
24 op.add_column('core__media_entries', sa.Column('main_transcoding_progress', sa.Float(), default=0))
25
26
27def downgrade():
28 pass