summaryrefslogtreecommitdiffhomepage
path: root/migrations/versions/cee6a710cb71_.py
blob: 00fb89b220279b86dd9de46f63d900d2c0edacc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
"""empty message

Revision ID: cee6a710cb71
Revises: 195144da1f7e
Create Date: 2023-09-20 23:11:15.678439

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = 'cee6a710cb71'
down_revision = '195144da1f7e'
branch_labels = None
depends_on = None

bind = op.get_context().bind


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    if bind.engine.name == 'postgresql':
        with op.batch_alter_table('table_episodes') as batch_op:
            batch_op.alter_column('file_size', type_=sa.BigInteger())

        with op.batch_alter_table('table_movies') as batch_op:
            batch_op.alter_column('file_size', type_=sa.BigInteger())
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    pass
    # ### end Alembic commands ###