schema
engine-dmo schema: Plan and apply configuration against the database. Every subcommand, argument and flag.
Plan and apply configuration against the database.
| Command | What it does |
|---|---|
engine-dmo schema adopt-ids | Give a database made before ids the ids the files carry: write missing ids, then bind |
engine-dmo schema alias list | Every live alias: the old handle, the field it names, and where it is declared |
engine-dmo schema alias retire | Remove an alias from its field; refused while a template still uses it |
engine-dmo schema apply | Apply the plan in one transaction. Refuses destructive changes unless approved |
engine-dmo schema plan | Read-only diff between config/ and the database. Exit 2 if changes are pending |
engine-dmo schema adopt-ids
adopt-ids writes an id for every element of the files that has none, as engine-dmo check --fix does, then applies a plan that may hold only binds: each row and stored definition made before ids takes the id its file gives it, and nothing else changes. A plan holding any other change is refused; apply it with engine-dmo schema apply first.
engine-dmo schema adopt-ids --json prints the text output in the JSON envelope. Runs in a project.
engine-dmo schema alias list
Every live alias: the old handle, the field it names, and where it is declared.
engine-dmo schema alias list --json prints the command’s own JSON document. Runs in a project.
engine-dmo schema alias retire
Remove an alias from its field; refused while a template still uses it.
engine-dmo schema alias retire <type.alias> | Argument | Required | Repeatable |
|---|---|---|
type.alias | yes | no |
--json prints the text output in the JSON envelope. Runs in a project.
engine-dmo schema apply
Apply the plan in one transaction. Refuses destructive changes unless approved.
engine-dmo schema apply [flags] | Flag | Type | Default | Meaning |
|---|---|---|---|
--allow-destructive | bool | apply destructive changes without an approval file, after confirming them | |
--replace | string, repeatable | let the element the file gives a new id replace the stored one with this handle (listing.priceRange); repeatable | |
--yes | bool | confirm a destructive plan when no terminal can ask |
--json prints the text output in the JSON envelope. Runs in a project.
engine-dmo schema plan
Read-only diff between config/ and the database. Exit 2 if changes are pending.
engine-dmo schema plan --json prints the command’s own JSON document. Runs in a project.
See Database and migrations for drift, destructive plans and the approval file.