retrofit op revert
Append the reversal `migrate --down` computes: the ghost's ops after the
log's last op, and the reference leg's records, so the log holds what was undone.
Each appended op carries `reason="undoes <opid>"`, naming the window op it undoes;
`reason=<text>` records that text on every appended op instead.
Synopsis
Usage:
retrofit op revert [reason=<text>] [flags]
Options
Flags:
--allow-readers-moved stringArray attest that the readers of the table or column with this qualified old name are handled by the time the rename applies (repeatable; byte-exact, never trimmed); every other rename still warns
--at string the cut the log is expected to end at; a precondition only
--data-root <path> root <path> that overrides the schema's `data_root`
--dry-run preview what would be appended and write nothing
--extra-seed-path <path> root <path> that appends to the declared `seed_paths`
--from <cut> start <cut>: from-opid prefix or anchor, read as `migrate --down` reads it; default: latest Seal, or `root` when no Seal exists
-h, --help help for revert
--help-all show extended help (vocabulary, semantics, caveats)
--label stringArray the reference-data label set the ghost reads (repeatable)
--seed-path <path> root <path> that replaces the declared `seed_paths`
--to string a slice's end, only beside --at
Global options
Global Flags:
--as string output mode: text | json (default "text")
-C, --chdir string treat <dir> as the working directory for the entire run
--config string retrofit.toml path (overrides discovery; also accepts $RETROFIT_CONFIG)
-f, --file string oplog file path; selects a registered [[schema]] path (overrides discovery)
--no-consolidate render every advisory occurrence instead of collapsing repeats
-q, --quiet count suppress the advisory tier on stderr; stack (-qq) to drop it whole (errors and results still print)
--schema <name> registered schema <name> (resolves via the chain when omitted)
-v, --verbose reveal info-tier advisories on stderr
Docs: https://docs.retrofit.sh/current/commands/retrofit-op-revert/