OJS event_log structure

I am using OJS right now and trying to upgrade 3.1.2. In my current tables, event_log and event_log_settings structure seems different from the original. I didn’t change anything but it automatically changed due to some data I think. Now I am not able to change the structure as I am getting 1072 and 1075 error. I think the table has some duplicate records. How to solve this? Thanks.

event_log%201072%20error event_log_1075%20error