# `Ecto.Migration.Command`
[🔗](https://github.com/elixir-ecto/ecto_sql/blob/v3.14.0/lib/ecto/migration.ex#L565)

Used internally by adapters.

This represents the up and down legs of a reversible raw command
that is usually defined with `Ecto.Migration.execute/1`.

To define a reversible command in a migration, see `Ecto.Migration.execute/2`.

# `t`

```elixir
@type t() :: %Ecto.Migration.Command{down: String.t(), up: String.t()}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
