# MigrationOptions

`interface` in `plugin-kysely-postgres` · v0.6.0

<https://seedcord.org/docs/packages/plugin-kysely-postgres/0.6.0/interfaces/migration-options>

Behavior configuration for migrations that should run automatically when a
database connection is established.

```ts
interface MigrationOptions
```

## Properties

### direction

```ts
readonly direction?: 'latest' | 'up' | 'down'
```

Direction to move along the migration timeline.

### steps

```ts
readonly steps?: number
```

Number of steps to apply when direction is `up` or `down`.

### target

```ts
readonly target?: MigrationTarget
```

Optional target migration to reach.
