Skip to content
All tool news

Tool desk · Updated daily

Tool news·Supabase·

Supabase Declarative Schemas 2.0 Stops Skipping Database Changes.

Supabase Declarative Schemas 2.0 uses pg-delta to generate migrations for RLS policies, grants, views, partitions, domains and more.

CW

Create With tool desk

3 sources checked · 2 min read · 3 sections

ShareLinkedIn
Supabase Declarative Schemas 2.0 Stops Skipping Database Changes

Declarative Schemas 2.0 gives the Supabase CLI a broader migration engine, so generated migrations no longer omit changes such as RLS policies, grants, view settings, partitions and domains.

Supabase shipped the update on 2 October 2026 and detailed it in a blog post. It replaces migra, the engine used by supabase db diff since the first CLI prototype in 2021, with a new open-source Postgres diff tool called pg-delta.

The declarative workflow remains the same. You keep SQL schema files under supabase/schemas/, edit those files, ask the CLI to generate a migration, review the resulting SQL and apply it.

What Declarative Schemas 2.0 Now Captures

The previous engine did not understand some Postgres objects, including domains, publications and comments. Those changes would not appear in its output, leaving developers to add versioned migrations by hand.

pg-delta expands the objects and operations the CLI can track:

AreaGenerated migration support
RLS policiesCreate, drop and alter changes
Access controlGrants and roles
Database structureView settings, partitions and domains
Other objectsComments, publication membership and extension-managed objects

The new engine also filters ownership per object rather than at schema level. Supabase-managed objects, such as the contents of the auth schema, can stay out of a diff while a developer-owned trigger attached to auth.users can still be included.

This per-object filtering extends to roles, grants and objects owned by extensions. Supabase built pg-delta from scratch and released it as open source.

New Projects Get the Engine by Default

New CLI projects use Declarative Schemas 2.0 automatically. Existing projects can opt in by adding a config block.

The release also introduces dependency-graph ordering for schema files. This allows the CLI to arrange files according to their database dependencies rather than relying only on their position in the directory.

A new db schema declarative generate command exports a live database into declarative schema files. That provides a route for bringing an existing database into the file-based workflow, alongside Supabase's wider move to put backend setup into repositories.

Frequently asked questions

What is Supabase Declarative Schemas 2.0?

Declarative Schemas 2.0 is a CLI workflow that turns SQL schema files into database migrations. It uses the open-source pg-delta engine to detect a wider range of Postgres changes.

How does Declarative Schemas 2.0 compare with the previous version?

The previous implementation used migra and could miss domains, publications, comments and some other database changes. Version 2.0 uses pg-delta, adds per-object filtering and covers RLS policy changes, grants, view settings, partitions, roles and extension-managed objects.

When is Declarative Schemas 2.0 available?

Supabase shipped it on 2 October 2026. New CLI projects receive it by default, while existing projects can enable it through a config block.

Sources

3 checked

How we cover tool news: Create With's tool desk drafts these reports with AI from the sources listed above and checks them against those sources before publishing.

Worth passing on?

ShareLinkedIn

Go deeper on Supabase

Related reading, watching and going.

Everything on Supabase →

The briefing

30 Sept 2026

Solo Consultant's AI Operating System Built on Markdown

London solo consultant uses an AI personal OS of markdown files—saving ~45% delivery time, boosting revenue 2.4×, and powering 33 community events for ~£250/mo.

Read →

The briefing

15 Sept 2026

€300k Business on 4 Hours/Week with AI — Case Study

Read how a one-man Dutch company scaled to €300k/yr and runs on 4 hours/week by rebuilding ops with Claude Code. Submit your AI case study to be featured.

Read →

The briefing

8 Sept 2026

How We Made 600 Branded Videos with AI & Remotion Workflow

See how Create With made 600 branded videos using Claude Code + Remotion. Template-driven brand-folder workflow for consistent social ads and event content.

Read →
36 min

Podcast

55. We're Back! Conference Recap, Running Events with AI & Self-Healing Apps

James and Kieran return to the Create With Podcast after their summer break to recap the 2026 Create With Conference in Brighton. They discuss how 550 attendees experienced workshops, a charity hackathon where functional apps were built in 30 minutes, and an innovative conference operating system built entirely with AI. The episode covers the latest developments in AI development tools including Anthropic's Fable model, scheduled tasks in Codex, and self-healing applications using PostHog.

Watch now ↗
34 min

Podcast

My Daughter Built a Website Business, Claude Design First Look & Going All-In on Cloudflare

James and Kieran discuss practical AI-powered development through real-world examples, including a seven-year-old building a website business with Claude Code voice mode, Anthropic's new Claude Design tool, API security challenges in the AI agent era, and Cloudflare's expanding AI infrastructure offerings. The episode covers hands-on experiences with vibe coding, emerging design tools, and the evolving landscape of AI-assisted development.

Watch now ↗

Podcast

53. Why Your Vibe Code Needs Tests, Ditching SaaS & AI Agents That Work While You Sleep

James and Kieran discuss the practical realities of building AI-powered software, emphasizing the importance of testing in vibe-coded applications, exploring alternatives to traditional SaaS tools, and implementing autonomous AI agents for business operations. The episode covers technical topics like Convex databases, app store bottlenecks from AI-generated submissions, and using OpenClaw as a marketing automation agent.

Watch now ↗

Latest tool news

What else changed this week.

All tool news
v0Roundup

Team Collaboration Expands with v0 for Teams

Team collaboration features have arrived across Airtable, v0 and Notion. The updates cover three different parts of shared work: controlling who can add or delete database…

The Create With Briefing

Don't watch forty changelogs. Read one email.

Every Tuesday: the tool changes worth knowing, real business use cases, and what's on near you. Free, unsubscribe any time.