> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ooneex.com/llms.txt
> Use this file to discover all available pages before exploring further.

# migration:up

> Run migrations for all modules.

Run migrations for every module that defines a `bin/migration/up.ts` script. Each module's migration script is run from its own directory. With `--drop`, the database is dropped before migrations run.

## Usage

```bash theme={null}
ooneex migration:up [options]
```

## Examples

```bash theme={null}
ooneex migration:up
```

```bash theme={null}
ooneex migration:up --drop
```

## Options

| Option   | Description                                  | Default |
| -------- | -------------------------------------------- | ------- |
| `--drop` | Drop the database before running migrations. | `false` |

## AI Skill

This command ships a matching `database:migrate` skill. It teaches your AI agent to drive the database lifecycle — applying and rolling back migrations, reseeding, and verifying the schema matches the entities.

<Tabs>
  <Tab title="Claude">
    ```bash theme={null}
    ooneex claude:init
    ```
  </Tab>

  <Tab title="Codex">
    ```bash theme={null}
    ooneex codex:init
    ```
  </Tab>
</Tabs>
