blob: 3a8c16339e8d4ea1cdd84919f0022d9f90a0f06a (
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
|
"""Alter table_languages_profiles.originalFormat type to from bool to int
Revision ID: b183a2ac0dd1
Revises: 30f37e2e15e1
Create Date: 2024-02-16 10:32:39.123456
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'b183a2ac0dd1'
down_revision = '30f37e2e15e1'
branch_labels = None
depends_on = None
bind = op.get_context().bind
def upgrade():
if bind.engine.name == 'postgresql':
with op.batch_alter_table('table_languages_profiles') as batch_op:
batch_op.alter_column('originalFormat', type_=sa.Integer())
def downgrade():
pass
|