You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9c1b9be
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: content/docs/deployment/cli.mdx
+1-37Lines changed: 1 addition & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1541,7 +1541,6 @@ where the data lives.
1541
1541
| `os migrate record-currency-codes` | Write the currency code you give into the rows of a record-mode currency field that hold an amount and no code, the rows stored before the field was switched to `currencyMode: 'record'`. The code is never derived. No flag; idempotent. See [below](#os-migrate-record-currency-codes) |
1542
1542
| `os migrate recompute-home-amounts` | Recompute the home-currency amounts a record-mode currency field stores, at the exchange rates in force now, after a rate is corrected or added. Reports the rows that change and lists, without writing, the rows it cannot convert. No flag; idempotent. See [below](#os-migrate-recompute-home-amounts) |
1543
1543
| `os migrate comment-reactions` | Carry the emoji reactions a 17.x deployment stored in the retired `sys_comment.reactions` column into `sys_comment_reaction` records, list every stored value that does not read, and record the verified run that lets `os migrate apply --allow-destructive` drop the column |
1544
-
| `os migrate list-preferences` | Remove the per-user list preference rows (`sys_user_preference` keys starting with `ui.list.`) that the Console no longer reads. Dry run by default; `--apply` deletes only with `--export`, which writes every row it deletes to a file first. No flag. See [below](#os-migrate-list-preferences) |
1545
1544
| `os migrate organization-ownership` | The v18 ownership ceremony (ADR-0131 D10): write a plan of what each table's rows will become, then `--apply` that reviewed plan. It upgrades a database 17.x or an 18.0 pre-release (`18.0.0-next.*`) created; a v18 server refuses to start on one until it has run. See [below](#os-migrate-organization-ownership) |
1546
1545
| `os migrate activity-changed-fields` | Stamp the two read-rule columns (`changed_fields`, `milestone_key`) on the `sys_activity` rows written before they existed. Until it runs, those rows are withheld from every reader but the system, so run it at once after upgrading. No flag; idempotent |
1547
1546
| `os migrate audit-mail-bodies` | Mask the mail bodies (`body_text`, `body_html`) that `sys_audit_log` and `sys_activity` copies of `sys_email` / `sys_identity_email` rows still hold in clear, written before the audit writer masked them. Covers the `archive` datasource `sys_audit_log` archives to as well. Reports counts only. No flag; idempotent. See [below](#os-migrate-audit-mail-bodies) |
@@ -1566,7 +1565,7 @@ A read-only data command does not read a table it found missing, since that tabl
1566
1565
holds nothing, and answers with empty work and exit 0. `os migrate value-shapes` is
1567
1566
clean over zero records and names the objects it did not read. `os migrate
1568
1567
recorded-by` has nothing to convert and `os migrate resume` no interrupted runs.
1569
-
`os migrate meta --stored` has no stored metadata to examine, `os migrate list-preferences` no preference row to report, `os migrate
1568
+
`os migrate meta --stored` has no stored metadata to examine, `os migrate
1570
1569
audit-metadata-bodies`, `os migrate audit-mail-bodies`, `os migrate audit-key-material` and `os migrate audit-side-copies` no audit copy to rewrite, and
1571
1570
`os migrate account-issuer` no account to collide. `os secret orphans`, `os secret rewrap` and `os storage orphans`
1572
1571
report no secret and no file. A read the command cannot avoid and that fails for any
@@ -2064,41 +2063,6 @@ A run that lists an unreadable value or fails a write exits `1`, and so does an
2064
2063
A database created on v18 never had the column: the run finds nothing, and
2065
2064
there is no drop to wait for.
2066
2065
2067
-
#### `os migrate list-preferences`
2068
-
2069
-
The Console used to keep one `sys_user_preference` row per user and object, keyed
2070
-
`ui.list.<object>`, holding that user's state for the object's lists: the order of
2071
-
the view tabs and, per view, a sort, filters, a column layout, a row height and
2072
-
hidden or added columns. It keeps none of that on the server any more. A change a
2073
-
reader makes on a list is a draft that they save into a view or discard, and the
2074
-
column widths, the row height and the tab order are kept in the reader's own
2075
-
browser. Nothing reads the old rows, so leaving them does no harm. This command
2076
-
removes them. What they held is not carried over: every list opens on its view's
2077
-
own layout until the reader changes it again.
2078
-
2079
-
```bash
2080
-
os migrate list-preferences # Dry run: how many rows, for how many users and which objects
2081
-
os migrate list-preferences --apply --export ./list-preferences-backup.json
2082
-
os migrate list-preferences --apply --export ./list-preferences-backup.json --yes --json # CI / scripts
2083
-
```
2084
-
2085
-
**Options:**
2086
-
- `--apply` — delete the listed rows (default off: a read-only dry run that writes nothing)
2087
-
- `--export <path>` — **mandatory with `--apply`**: every row the run deletes, as stored, written
2088
-
owner-only and read back before the first delete; refuses to overwrite an existing file
2089
-
- `-y, --yes` — skip the confirmation prompt
2090
-
- `--force` — apply even when another process is using the SQLite file
2091
-
- `--database-url <url>`, `--json`
2092
-
2093
-
Only keys that start with `ui.list.` are touched. Every other preference row,
2094
-
`ui.record.<object>` included, stays as it is. The rows are deleted by id, the ones
2095
-
the export holds and no others, and none of them enters the recycle bin. The run then
2096
-
reads the prefix again. If a row remains, or was written since by a Console that has
2097
-
not been upgraded, it is reported and the run exits `1`; run it again once every
2098
-
Console is upgraded. A run that finds nothing writes no export and exits `0`. It is
2099
-
never run for you: nothing on any boot, upgrade, migrate or lifecycle path invokes it,
2100
-
and it records no `sys_migration` verdict, because nothing waits for one.
2101
-
2102
2066
#### `os migrate activity-changed-fields`
2103
2067
2104
2068
An activity row is served to a reader only when the platform can judge it for
Copy file name to clipboardExpand all lines: content/docs/upgrading.mdx
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -493,8 +493,6 @@ the protocol-18 step, which `os migrate meta --from 17` lists for your sources
493
493
494
494
**Upgrading from 18.5.0 or earlier:** the first [`os migrate plan`](/docs/deployment/cli#schema-migrations) after the move lists a safe `create_index` for each `(created_at, id)` and `(owner_id)` index schema sync now builds without a declaration, and on SQLite a `normalize_boolean_storage` step for boolean cells stored as text; the next sync or `os migrate apply` builds them, and neither is destructive. Where an app declares `lifecycle.seal`, an `os migrate audit-* --apply` run on SQLite or Turso now needs every sealing server stopped and `--sealer-stopped` ([18.6.0 checklist](/docs/releases/v18/18-6#upgrade-checklist)).
495
495
496
-
**Upgrading from 18.6.0 or earlier:** the Console no longer reads the per-user list preference rows (`sys_user_preference` keys `ui.list.<object>`). A reader's column widths, row height and view tab order are kept in their own browser from now on, so each list opens on its view's own layout until the reader changes it again. To clear the old rows, run [`os migrate list-preferences`](/docs/deployment/cli#os-migrate-list-preferences) once all your Consoles are upgraded, a dry run first and then `--apply --export <file>`. Leaving them does no harm: nothing reads them.
497
-
498
496
The v17 and v18 lines are broken out per release. Each v17 minor shipped
499
497
breaking changes under the repo's launch-window convention — which ships a
500
498
breaking change as `minor` rather than `major`, so the version number is not the
0 commit comments