I am working on dumping the Salesforce custom object to a database. I wanted to know if there is any way at the API level to determine if the field was renamed.
Implementation wise, I get the Salesforce field definitions and store them locally. This would be compared against the live field definitions to detect a change. For example, if an object has fields [F1, F2, F3] and F3 had been renamed to F4, the field definitions retrieved are [F1, F2, F4]. It might be easier to deduce that F3 had been renamed to F4 if (field name, field labels) are changed. There's a catch to this approach. If the field definitions of F2 and F3 are the same, provided the field definitions retrieved were [F1], there isn't a way to deduce which field was renamed to F4.
Is there a way to retrieve any info from Standard objects or field definitions that identifies a field rename?