I've got a problem in which I'm trying to deploy something whereby a field of type
Number is being changed to a summary field.
What's happened is we created an object,
Opportunity__c with two fields:
Expected_Vacancies__c, both were Number fields.
We also had another object called
Opportunity_Forecast__c. Now the requirement has changed that the
Expected_Vacancies__c be a calculation of values entered in the forecast Object.
Now I've done all the switching around in a sandbox environment, but in validating the deployment I've got an error I half expected given we're changing metadata:
Cannot update a field to a Summary from something else
What's more problematic is that both
Expected_Vacancies__c are referenced by a Visualforce Page and Apex Classes.
The only way I can think to overcome this is to delete the classes, the Visualforce Page and the fields and just redeploy it, but I feel like this would be messy. Luckilly the object hasn't been used too much so it's not an issue. In a nutshell:
Is there an easier way to deploy changes to unrelated field types?