Do not assume that all protocol versions have the same runtime data structure. For example, add default values if a field is missing when importing into a newer version and upgrading.
Keep import and export functions for each version.
Add migration scripts that upgrade or downgrade between formats and versions.
Do not assume that all protocol versions have the same runtime data structure. For example, add default values if a field is missing when importing into a newer version and upgrading.
Keep import and export functions for each version.
Add migration scripts that upgrade or downgrade between formats and versions.