# MigrationOptions

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

<https://docs.seedcord.org/packages/plugin-kysely-postgres/0.4.2/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.
