Task completion not deleting variable while execution deletion resulted foreign key violation

I have added one column in act_ru_variable , and now whenever i am completing task when it has variables and while execution deletion , variable is not getting deleted , and throwing foreign key violation