{
  "slug": "netlify-db-migrations-pull-7ec0dcc3f629",
  "title": "netlify db migrations pull",
  "tools": [
    "netlify"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-04-09T15:17:59.000Z",
  "announced_at": "2026-04-09T15:17:59.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When local migrations need to match production or a remote branch, run `netlify db migrations pull`; it replaces the local migrations directory after confirmation unless `--force` is used.",
    "examples": [
      "netlify db migrations pull",
      "netlify db migrations pull --branch <branch>",
      "netlify db migrations pull --branch --force --json"
    ],
    "gotchas": [
      "Version: 24.11.0",
      "--branch [branch] (-b): Pull from the named branch; defaults to production. With no value, uses the local Git branch.",
      "--force: Skip the confirmation prompt before overwriting local migration files.",
      "--json: Output the result as JSON.",
      "Prerequisite: The project must be linked with `netlify link`.",
      "Prerequisite: Log in with `netlify login`.",
      "The command overwrites the local migrations directory.",
      "The default production pull prompts for confirmation."
    ]
  },
  "why_it_matters": "Replace local database migrations with migrations from production or a specified branch.",
  "sources": [
    "https://github.com/netlify/cli/releases/tag/v24.11.0",
    "https://github.com/netlify/cli/pull/8139",
    "https://github.com/netlify/cli/blob/v24.11.0/src/commands/database/database.ts",
    "https://github.com/netlify/cli/blob/v24.11.0/src/commands/database/migration-pull.ts"
  ],
  "rank": 0.90024,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2a-20261017",
    "verdict_id": "wave2a-20261017:wave2a-20261017-8e1d91c6565af909-1:gate",
    "evidence_hash": "82d51ecb0ae15fc529018bbbc46a743d29c3747cce558e9d4ff54a78f9ea972d"
  },
  "review": {
    "draft_hash": "56ccc1555c4bb01b7b726d6a65a40823b4cd98a367a0932771a15b3e3f5b071e",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2a-20261017:gate",
    "reason": "2 of 3 judge runs approved with p_yes >= 0.9 (mean 0.90 >= 0.9; 2 needed) and Jev gave 0.75 (>= 0.6 needed)."
  }
}
