40 lines
941 B
Python
40 lines
941 B
Python
"""add entry benefit scope
|
|
|
|
Revision ID: 46efbd09438b
|
|
Revises: 71ff8f291d18
|
|
Create Date: 2026-04-20 22:26:46.698956
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '46efbd09438b'
|
|
down_revision = '71ff8f291d18'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('entry', schema=None) as batch_op:
|
|
batch_op.add_column(
|
|
sa.Column(
|
|
'benefit_scope',
|
|
sa.String(length=20),
|
|
nullable=False,
|
|
server_default='both',
|
|
)
|
|
)
|
|
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('entry', schema=None) as batch_op:
|
|
batch_op.drop_column('benefit_scope')
|
|
|
|
# ### end Alembic commands ###
|