{
  "slug": "supabase-db-schema-declarative-sync-adds-no-apply-57d46cfae43d",
  "title": "supabase db schema declarative sync adds --no-apply",
  "tools": [
    "supabase"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-05-21T08:35:38.000Z",
  "announced_at": "2026-05-21T08:35:38.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When you need a generated declarative-schema migration without applying it locally, run `supabase db schema declarative sync -f <migration_name> --no-apply` to write the migration and stop without prompting. The command requires declarative schema support to be enabled.",
    "examples": [
      "supabase db schema declarative sync -f <migration_name> --no-apply"
    ],
    "gotchas": [
      "Version: v2.101.0",
      "--no-apply: Generate the migration file without prompting or applying it locally.",
      "-f, --file <string>: Save the schema diff to a new migration file; the example uses this to name it.",
      "--experimental: Enable experimental features for a single run; alternatively enable `[experimental.pgdelta]` in config.toml.",
      "Prerequisite: Requires `--experimental` or `[experimental.pgdelta] enabled = true` in config.toml.",
      "Prerequisite: The declarative sync command requires the pg-delta engine; it does not run on the legacy migra engine.",
      "`--no-apply` overrides the global `--yes`.",
      "`--no-apply` cannot be combined with `--apply`."
    ]
  },
  "why_it_matters": "Generate a declarative schema migration in CI or a review workflow and inspect the diff before changing the local database.",
  "sources": [
    "https://github.com/supabase/cli/releases/tag/v2.101.0",
    "https://supabase.com/docs/guides/local-development/declarative-database-schemas",
    "https://supabase.com/docs/reference/cli/global-flags"
  ],
  "rank": 0.96031,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v1+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "backfill-20261007",
    "verdict_id": "backfill-20261007:backfill-20261007-b0e30d1e604cfa0e-0:gate",
    "evidence_hash": "3bb4d67e87da46c02d62e878c5073a67a781f0f9c971b0e0d13f53bf723a1438"
  },
  "review": {
    "draft_hash": "8d64226d8717f8e7b3d58f06fb359461f1e45bdfd5276e9b275acd5feda01ad1",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "backfill-20261007:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.96 >= 0.9; 2 needed) and Jev gave 0.80 (>= 0.6 needed)."
  }
}
