Fix errors in notification migrations