You may be able to change the ff# in the record without issue even if upgraded. A major concern may be what fare bucket the upgrades are processed into.
Most upgrades and mileage tickets are in a fare bucket that does not earn credit to other *alliance partners. If that is the case you would lose the miles for either carrier.