# Declarative Schemas 2.0 with pg-delta

DevFeed: [Declarative Schemas 2.0 with pg-delta](<https://devfeed.tech/articles/declarative-schemas-2-0-with-pg-delta-86232.md>)

Original publisher: [Read original article](<https://supabase.com/blog/declarative-schemas-2-0-pg-delta>)

Author: Andrew Valleteau; Wen Bo Xie

Published: 2026-10-13T07:00:00Z

Content type: release

Language: en

Sources: [Supabase](<https://devfeed.tech/sources/supabase-blog.md>)

Topics: [schema-evolution](<https://devfeed.tech/topics/schema-evolution.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>)

Tags: [ci](<https://devfeed.tech/tags/ci.md>), [cli](<https://devfeed.tech/tags/cli.md>), [database](<https://devfeed.tech/tags/database.md>), [database-schema](<https://devfeed.tech/tags/database-schema.md>), [migrations](<https://devfeed.tech/tags/migrations.md>)

## AI overview

Supabase Declarative Schemas 2.0 replaces migra with pg-delta, a PostgreSQL diff tool that generates migrations from SQL schema files. The release adds coverage for objects including row-level security policies, grants, view settings, partitions and domains, and explains setup, migration review and current limitations. pg-delta is in alpha, and generated changes may require manual edits, especially when a column rename appears as a drop and add.

## Source excerpt

The migrations the CLI writes for you no longer skip RLS policy changes, grants, view settings, partitions, or domains.