API version: 0.3.0

---

# Migration

`Migration` is the built-in node label of schema migrations, see [migrations](/reference/schemas/migrations.md).
The timestamps are strings in RFC 3339 format. `error` is only there while the last run failed. The steps of a migration
are stored in `_steps`, which is internal to the API and not part of any schema.

The definition below is generated from the code of the API. Schemas of built-in types can extend it, but never overrule
it, see [built-in schemas](/reference/schemas/built-in-schemas.md).

```json
{
  "name": "Migration",
  "kind": "node",
  "mode": "partial",
  "properties": {
    "schemaName": {
      "type": "string",
      "required": true
    },
    "kind": {
      "type": "string",
      "required": true
    },
    "schemaVersion": {
      "type": "integer",
      "required": true
    },
    "status": {
      "type": "string",
      "required": true,
      "enum": [
        "pending",
        "queued",
        "running",
        "succeeded",
        "failed",
        "cancelled"
      ]
    },
    "stepCount": {
      "type": "integer",
      "required": true
    },
    "queuedAt": {
      "type": "string",
      "required": false
    },
    "startedAt": {
      "type": "string",
      "required": false
    },
    "finishedAt": {
      "type": "string",
      "required": false
    },
    "error": {
      "type": "string",
      "required": false
    }
  },
  "files": null,
  "rules": [],
  "placement": null
}
```

---

Home: [Ember Nexus API docs](/index.md)

Full site map: [llms.txt](/llms.txt)

Previous: [SchemaRevision](/reference/schemas/built-in-schemas/schema-revision.md)

Next: [HAS_REVISION](/reference/schemas/built-in-schemas/has-revision.md)
