From 5336b2544e67bf71e900d2e3c813dc275f819994 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 15 Nov 2026 19:00:07 +0000 Subject: [PATCH] docs(cli): rollback, revert and extension delete fill stored expressions at the change The `os migrate stored-expressions` row still named a rollback or revert as a change that does not fill. The history doors and the delete of an object_extension now fill at the change, as the save and publish doors do; the row names them and keeps the command for a repository-changed definition and for rows a door's fill could not write. Claude-Session: https://claude.ai/code/session_01ADHkmRrQB4tkFVtnqiS8an Co-authored-by: Claude --- content/docs/deployment/cli.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/deployment/cli.mdx b/content/docs/deployment/cli.mdx index ceafced3351..7c11806b76e 100644 --- a/content/docs/deployment/cli.mdx +++ b/content/docs/deployment/cli.mdx @@ -1476,7 +1476,7 @@ where the data lives. | `os migrate files-to-references` | Convert legacy file-field values to `sys_file` references, verify the ownership ledger, and record the deployment's migration flag | | `os migrate value-shapes` | Scan stored reference and structured-JSON field values against the platform's value contract, and record the deployment's migration flag when clean | | `os migrate summary-nulls` | Backfill roll-up `count` / `sum` columns still stored as `NULL` on parent rows created before the insert-time seed. Repairs values; no flag, nothing depends on it having run | -| `os migrate stored-expressions` | Fill a stored computed field (a non-formula field declaring `expression`) on rows no write has computed since the field was declared or its expression changed. A field added, turned from a formula or given a new expression through a save in publish mode or a publish (`PUT /api/v1/meta/:type/:name`, `POST /api/v1/meta/:type/:name/publish`, `POST /api/v1/packages/:id/publish-drafts`) is filled at that change, and the answer reports the rows per field; this command is for a definition changed in a repository and booted, which holds `NULL` (or the old expression's value) on existing rows until each is next written, and for a rollback or revert, which does not fill. The boot warns, naming the field, when a sample of rows holds such a `NULL`. `--changed` also recomputes values an edited expression no longer gives. Rows an expression cannot compute while they hold a value are listed, never written. No flag; idempotent | +| `os migrate stored-expressions` | Fill a stored computed field (a non-formula field declaring `expression`) on rows no write has computed since the field was declared or its expression changed. A field added, turned from a formula or given a new expression through a save in publish mode, a publish (`PUT /api/v1/meta/:type/:name`, `POST /api/v1/meta/:type/:name/publish`, `POST /api/v1/packages/:id/publish-drafts`), a rollback or revert (`POST /api/v1/meta/:type/:name/rollback`, `POST /api/v1/packages/:id/commits/:commitId/revert`, `POST /api/v1/packages/:id/rollback`) or the delete of an `object_extension` that re-declared it (`DELETE /api/v1/meta/:type/:name`) is filled at that change, and the answer reports the rows per field; this command is for a definition changed in a repository and booted, which holds `NULL` (or the old expression's value) on existing rows until each is next written, and for rows such a fill could not write, which its `stored-expression-fill-incomplete` warning names this command for. The boot warns, naming the field, when a sample of rows holds such a `NULL`. `--changed` also recomputes values an edited expression no longer gives. Rows an expression cannot compute while they hold a value are listed, never written. No flag; idempotent | | `os migrate blank-single-values` | Rewrite the empty strings (`''`) still stored on optional single-value option, reference and file columns to `null`, the form a cleared value is stored in today, so `$empty` finds those rows. Repairs values; no flag, nothing depends on it having run. See [below](#os-migrate-blank-single-values) | | `os migrate blank-multi-values` | Rewrite the empty lists (`[]`) and empty strings (`''`) still stored on optional multi-value columns to `null`, the form a cleared value is stored in today, so rows cleared before and after read alike. Repairs values; no flag, nothing depends on it having run. See [below](#os-migrate-blank-multi-values) | | `os migrate option-codes` | Rewrite option values still stored as a number, a boolean or SQLite `"N.0"` text (rows written before option fields stored the code string) to that code string, so filters, reads and unique keys see one value. Values it cannot decide are listed, never rewritten. No flag; idempotent. See [below](#os-migrate-option-codes) |