Skip to main content

Module migrate

Module migrate 

Source
Expand description

Migrations: a document of an older version rewritten into the current version’s shape.

Each step takes a document of one version to the next, working on its JSON before any type reads it, since the older version’s types are gone. A document is taken through every step from its own version to VERSION, then read as a document of the current version, so everything the current reader checks, it still checks (ADR-112).

fromtowhat changes
0.10.2attachments, the source file’s other files, is renamed source_files, leaving “attachment” to mean a file carried beside the design in a .hprz; a .ork source’s airframe_not_as_written, which 0.1 didn’t record, is worked out from the configurations, or set to UNKNOWN when they don’t show it

Constants§

OLDEST
The oldest version this reader migrates from.
UNKNOWN
The reason a 0.1 document migrates with when none of its configurations shows whether its .ork airframe was read exactly as written.

Functions§

migrates_from
Whether this reader migrates a document of version to the current one.