---
title: "schema declarative sync"
description: "Generate a new migration by diffing your declarative schema files against the current migration state."
type: skill
canonical_url: https://claudary.paisolsolutions.com/skills/schema-declarative-sync
source: "Claudary"
difficulty: intermediate
author: "Claude Code Knowledge Pack"
date: 2026-07-10T11:46:24.866Z
license: CC-BY-4.0
attribution: "schema declarative sync — Claudary (https://claudary.paisolsolutions.com/skills/schema-declarative-sync)"
---

# schema declarative sync
Generate a new migration by diffing your declarative schema files against the current migration state.

## Overview

## supabase-db-schema-declarative-sync

Generate a new migration by diffing your declarative schema files against the current migration state.

When no declarative schema exists yet, the command offers to run `generate` first. After computing the diff, you can optionally name the migration and apply it to the local database.

Requires `--experimental` flag or `[experimental.pgdelta] enabled = true` in config.

---

Source: [Claudary](https://claudary.paisolsolutions.com/skills/schema-declarative-sync) · https://claudary.paisolsolutions.com
