change events attribute datatype from integer to boolean