code: def do_upgrade():
      
      op.alter_column(
          table_name='knwKBRVAL',
          column_name='id_knwKB',
          type_=db.MediumInteger(8, unsigned=True),
          existing_nullable=False,
          existing_server_default='0'
      )
docs: Carry out the upgrade.