Read migration history
read_migration_historyQuery and summarize historical database migrations from popular frameworks. Filter by schema to see migration records from Alembic, Flyway, and more.
Instructions
Query and summarize historical migrations applied to the database by popular migration frameworks (Alembic, Flyway, Diesel, Django, Prisma, Golang Migrate, Goose, Sequelize). Allows filtering by schema. Returns an object with one optional list per detected framework: alembic, flyway, diesel, django, prisma, golang_migrate, goose, sequelize. Each entry is null when the framework's table isn't present; otherwise it carries the framework-specific row shape (e.g. alembic has {version_num}; flyway has {installed_rank, version, description, type, ...}).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | No | ||
| database | No | Optional: target a configured secondary (read-only) database by name; omit for the primary. Call list_databases to see the configured ids. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goose | No | ||
| diesel | No | ||
| django | No | ||
| flyway | No | ||
| prisma | No | ||
| alembic | No | ||
| sequelize | No | ||
| golang_migrate | No |