remove unused variable from upgrade script