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.

33 lines
829 B
Python

"""empty message
Revision ID: eba4a4c12851
Revises: 0c4f1f46e5ea
Create Date: 2025-10-21 23:01:50.526401
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'eba4a4c12851'
down_revision = '0c4f1f46e5ea'
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.add_column(sa.Column('auth_code', sa.String(length=128), nullable=True, comment='权限编码'))
# ### 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.drop_column('auth_code')
# ### end Alembic commands ###