You might find that a hotfix in your production model is needed while you work on improvements to a development model. To hotfix your production model, an object needs to be added, deleted, reordered, and renamed. This procedure enables you to apply the hotfix without impacting on your development improvements.
Both models must be structurally compatible.
Note: This method can remove data from a structure that is added to the production (PROD) model after the bug fix. The structure is added to the PROD model between the bug fix and the next revision. Examples of the structural changes include adding modules, lists, list items, versions, or imports.
Hotfixing your production model is a two-step process:
- Roll back the development model.
- Restore the changes to development and apply the hotfix.
Roll back the development model
Roll the development model back to a version that doesn’t contain any changes (is the same as production) and apply the hotfix to that version.
To roll back the development model:
- Save a new version of the development model. Write down the History ID of the last structural change. This ID is shown right before you enter the new revision.
- On the development model, use History to restore to a point where development and production were identical (before any changes were made in development).
- Apply the hotfix.
- Save a new revision of the development model.
- Synchronize the development model with the production model.
Production now has its hotfix.
Restore the changes to development and apply the hotfix
To restore the changes to development and apply the hotfix:
- Find the correct History ID that contains all the development work (minus the hotfix) on the development model, and restore to that version.
- Apply the hotfix to this version of development, if required.
In some cases, development work may already incorporate the hotfix changes, and no further action is required. - Create a new revision of the development model.
Development is now restored to the latest version, with the hotfix changes applied.
When your development work is complete, you can synchronize the changes to production.