36 lines
843 B
Python
36 lines
843 B
Python
"""expand entry benefit scope
|
|
|
|
Revision ID: ab4c2d1e9a10
|
|
Revises: d9f3c6a1b7f0
|
|
Create Date: 2026-04-21 16:05:00.000000
|
|
"""
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
revision = "ab4c2d1e9a10"
|
|
down_revision = "d9f3c6a1b7f0"
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
with op.batch_alter_table("entry", schema=None) as batch_op:
|
|
batch_op.alter_column(
|
|
"benefit_scope",
|
|
existing_type=sa.String(length=20),
|
|
type_=sa.String(length=120),
|
|
existing_nullable=False,
|
|
)
|
|
|
|
|
|
def downgrade() -> None:
|
|
with op.batch_alter_table("entry", schema=None) as batch_op:
|
|
batch_op.alter_column(
|
|
"benefit_scope",
|
|
existing_type=sa.String(length=120),
|
|
type_=sa.String(length=20),
|
|
existing_nullable=False,
|
|
)
|