forked from iti-framework/iTi-Flask
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.
39 lines
1.1 KiB
Python
39 lines
1.1 KiB
Python
"""empty message
|
|
|
|
Revision ID: e0addf88b922
|
|
Revises: eba4a4c12851
|
|
Create Date: 2025-10-22 01:09:43.193921
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = 'e0addf88b922'
|
|
down_revision = 'eba4a4c12851'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('sys_menu', schema=None) as batch_op:
|
|
batch_op.alter_column('path',
|
|
existing_type=sa.VARCHAR(length=255),
|
|
nullable=True)
|
|
batch_op.drop_constraint(batch_op.f('uq_sys_menu_path'), type_='unique')
|
|
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('sys_menu', schema=None) as batch_op:
|
|
batch_op.create_unique_constraint(batch_op.f('uq_sys_menu_path'), ['path'])
|
|
batch_op.alter_column('path',
|
|
existing_type=sa.VARCHAR(length=255),
|
|
nullable=False)
|
|
|
|
# ### end Alembic commands ###
|