Change cascade types to cascade on delete.