List repository migrations
list_repo_migrationsLists repository migration files in Supabase apply order with SHA-256 hashes and flags skipped SQL files or duplicate versions, so you can identify migrations and exact filenames for verification.
Instructions
List the migration files in the repository (Supabase layout _.sql), in apply order (by file name, as the Supabase CLI applies them), with the sha256 of each file. Also reports .sql files the Supabase CLI would skip because of their name and versions used by more than one file. Use it to see which migrations exist or to find the exact file name for the other tools. Needs no database. Read-only: it reads migration files and pg_catalog inside a READ ONLY transaction, and never runs migration SQL or writes anything.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_repo_migrations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Migrations directory. Relative paths are resolved against the project directory. It must be inside the project directory or the configured migrations directory. Omit to use the configured directory (PGMV_MIGRATIONS_DIR, default supabase/migrations). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| skipped | Yes | .sql files the Supabase CLI never applies because of their name | |
| directory | Yes | Migrations directory, relative to the project directory when it is inside it | |
| duplicateVersions | Yes | Versions used by more than one file |