upgrade script to remove fields