add SQL to remove encounter_num constraints.