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.
33 lines
862 B
Python
33 lines
862 B
Python
"""empty message
|
|
|
|
Revision ID: 70dac20262ef
|
|
Revises: 3b3e7f8dd32f
|
|
Create Date: 2025-10-23 10:05:55.795788
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '70dac20262ef'
|
|
down_revision = '3b3e7f8dd32f'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.create_table('sys_role_menu',
|
|
sa.Column('role_id', sa.String(length=36), nullable=False, comment='角色ID'),
|
|
sa.Column('menu_id', sa.String(length=36), nullable=False, comment='菜单ID'),
|
|
sa.PrimaryKeyConstraint('role_id', 'menu_id', name=op.f('pk_sys_role_menu'))
|
|
)
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_table('sys_role_menu')
|
|
# ### end Alembic commands ###
|