"""empty message Revision ID: c46167ccbf4d Revises: 5c84e633f254 Create Date: 2025-10-21 19:31:04.980171 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'c46167ccbf4d' down_revision = '5c84e633f254' branch_labels = None depends_on = None def upgrade(): # ### commands auto generated by Alembic - please adjust! ### with op.batch_alter_table('sys_config', schema=None) as batch_op: batch_op.add_column(sa.Column('remark', sa.String(length=255), nullable=True, comment='备注')) batch_op.alter_column('created_at', existing_type=sa.DATETIME(), nullable=False) batch_op.alter_column('updated_at', existing_type=sa.DATETIME(), nullable=False) with op.batch_alter_table('sys_dept', schema=None) as batch_op: batch_op.add_column(sa.Column('remark', sa.String(length=255), nullable=True, comment='备注')) batch_op.alter_column('created_at', existing_type=sa.DATETIME(), nullable=False) batch_op.alter_column('updated_at', existing_type=sa.DATETIME(), nullable=False) with op.batch_alter_table('sys_dict_data', schema=None) as batch_op: batch_op.add_column(sa.Column('remark', sa.String(length=255), nullable=True, comment='备注')) batch_op.alter_column('created_at', existing_type=sa.DATETIME(), nullable=False) batch_op.alter_column('updated_at', existing_type=sa.DATETIME(), nullable=False) with op.batch_alter_table('sys_dict_type', schema=None) as batch_op: batch_op.add_column(sa.Column('remark', sa.String(length=255), nullable=True, comment='备注')) batch_op.alter_column('created_at', existing_type=sa.DATETIME(), nullable=False) batch_op.alter_column('updated_at', existing_type=sa.DATETIME(), nullable=False) with op.batch_alter_table('sys_log', schema=None) as batch_op: batch_op.add_column(sa.Column('remark', sa.String(length=255), nullable=True, comment='备注')) batch_op.alter_column('created_at', existing_type=sa.DATETIME(), nullable=False) batch_op.alter_column('updated_at', existing_type=sa.DATETIME(), nullable=False) with op.batch_alter_table('sys_menu', schema=None) as batch_op: batch_op.add_column(sa.Column('remark', sa.String(length=255), nullable=True, comment='备注')) batch_op.alter_column('created_at', existing_type=sa.DATETIME(), nullable=False) batch_op.alter_column('updated_at', existing_type=sa.DATETIME(), nullable=False) with op.batch_alter_table('sys_role', schema=None) as batch_op: batch_op.add_column(sa.Column('remark', sa.String(length=255), nullable=True, comment='备注')) batch_op.alter_column('created_at', existing_type=sa.DATETIME(), nullable=False) batch_op.alter_column('updated_at', existing_type=sa.DATETIME(), nullable=False) with op.batch_alter_table('sys_user', schema=None) as batch_op: batch_op.add_column(sa.Column('remark', sa.String(length=255), nullable=True, comment='备注')) batch_op.alter_column('created_at', existing_type=sa.DATETIME(), nullable=False) batch_op.alter_column('updated_at', existing_type=sa.DATETIME(), nullable=False) # ### end Alembic commands ### def downgrade(): # ### commands auto generated by Alembic - please adjust! ### with op.batch_alter_table('sys_user', schema=None) as batch_op: batch_op.alter_column('updated_at', existing_type=sa.DATETIME(), nullable=True) batch_op.alter_column('created_at', existing_type=sa.DATETIME(), nullable=True) batch_op.drop_column('remark') with op.batch_alter_table('sys_role', schema=None) as batch_op: batch_op.alter_column('updated_at', existing_type=sa.DATETIME(), nullable=True) batch_op.alter_column('created_at', existing_type=sa.DATETIME(), nullable=True) batch_op.drop_column('remark') with op.batch_alter_table('sys_menu', schema=None) as batch_op: batch_op.alter_column('updated_at', existing_type=sa.DATETIME(), nullable=True) batch_op.alter_column('created_at', existing_type=sa.DATETIME(), nullable=True) batch_op.drop_column('remark') with op.batch_alter_table('sys_log', schema=None) as batch_op: batch_op.alter_column('updated_at', existing_type=sa.DATETIME(), nullable=True) batch_op.alter_column('created_at', existing_type=sa.DATETIME(), nullable=True) batch_op.drop_column('remark') with op.batch_alter_table('sys_dict_type', schema=None) as batch_op: batch_op.alter_column('updated_at', existing_type=sa.DATETIME(), nullable=True) batch_op.alter_column('created_at', existing_type=sa.DATETIME(), nullable=True) batch_op.drop_column('remark') with op.batch_alter_table('sys_dict_data', schema=None) as batch_op: batch_op.alter_column('updated_at', existing_type=sa.DATETIME(), nullable=True) batch_op.alter_column('created_at', existing_type=sa.DATETIME(), nullable=True) batch_op.drop_column('remark') with op.batch_alter_table('sys_dept', schema=None) as batch_op: batch_op.alter_column('updated_at', existing_type=sa.DATETIME(), nullable=True) batch_op.alter_column('created_at', existing_type=sa.DATETIME(), nullable=True) batch_op.drop_column('remark') with op.batch_alter_table('sys_config', schema=None) as batch_op: batch_op.alter_column('updated_at', existing_type=sa.DATETIME(), nullable=True) batch_op.alter_column('created_at', existing_type=sa.DATETIME(), nullable=True) batch_op.drop_column('remark') # ### end Alembic commands ###