beb9121c |
1 | """add main transcoding progress column to MediaEntry |
2 | |
3 | Revision ID: cc3651803714 |
4 | Revises: 228916769bd2 |
5 | Create Date: 2017-08-21 23:33:01.401589 |
6 | |
7 | """ |
8 | |
9 | # revision identifiers, used by Alembic. |
10 | revision = 'cc3651803714' |
11 | down_revision = '228916769bd2' |
12 | branch_labels = None |
13 | depends_on = None |
14 | |
15 | from alembic import op |
16 | import sqlalchemy as sa |
17 | |
18 | |
19 | def 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 | |
27 | def downgrade(): |
28 | pass |