detect_migration_state
Probe databases for migration tool tracker tables to identify managed migrations, returning detected tools, schema, table, count, and latest version.
Instructions
Probe the database for migration tool tracker tables (Liquibase, Flyway, Alembic, Prisma, Knex, Sequelize, Django, Rails, Goose, TypeORM). Returns which tools are detected, the schema and table holding their state, the count of applied migrations, and the latest version. AI agents use this to immediately understand whether the DB is managed by a migration tool before suggesting changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schemas | No | Schemas to probe. Default: all non-system schemas. | |
| server | No | ||
| database | No | ||
| schema | No |