You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
924 B
Python

"""empty message
Revision ID: 3b3e7f8dd32f
Revises: e0addf88b922
Create Date: 2025-10-22 23:47:18.790303
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '3b3e7f8dd32f'
down_revision = 'e0addf88b922'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('sys_dept', schema=None) as batch_op:
batch_op.alter_column('parent_id',
existing_type=sa.VARCHAR(length=36),
nullable=True)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('sys_dept', schema=None) as batch_op:
batch_op.alter_column('parent_id',
existing_type=sa.VARCHAR(length=36),
nullable=False)
# ### end Alembic commands ###