Add missing ondelete cascade on allocations

issue4093
review7461002