added permit_type field and associated migration