Sari la conținut

Română · beta. Traducerea a fost făcută automat și este încă în curs de revizuire. Citește pagina în engleză

perspectiva aiqbenchProduse AI

analiza aiqbench

This article details the release of pg-delta, a new open-source Postgres diff tool that resolves critical limitations in schema migration coverage for Supabase projects. By replacing the previous Python-based engine, it now accurately captures changes to domains, grants, and extension-managed objects while intelligently filtering out internal service schemas like Auth.
Sursă care acoperăSupabase
Ce este aceastaLectura unui model asupra articolului și a acoperirii conexe, scrisă pentru aiqbench. Nu sunt cuvintele publicației.

Declarative Schemas 2.0 with pg-delta

Supabase10 min de cititArticolul și perspectiva sunt în engleză.

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

On October 2 at Supabase Select we shipped Declarative Schemas 2.0. The Supabase CLI now generates migrations with pg-delta, a Postgres diff tool we wrote and open sourced, in place of migra, the technology behind our original implementation. Generated migrations now include RLS policy changes, grants, view settings, partitions, domains, and objects that extensions manage. Declarative schemas first launched in April 2025. You keep your schema in SQL files under supabase/schemas/, edit them, and the CLI writes the migration. In 2.0 that workflow is the same: edit a file, generate the migration, review it, and apply it. New CLI projects get 2.0 by default. Existing projects opt in with one config block. In this post we cover why we built pg-delta, how to turn it on, a working example, and what it does not do yet. migra is an open source Python tool that diffs two Postgres databases and emits the SQL between them. It has powered supabase db diff since the first CLI prototype in 2021. migra didn't understand domains, publications, or comments. Changes to them never appeared in the diff. You read every generated migration line by line to find what was missing. The limitations list in our…

Extras afișat conform termenilor RSS ai publicației · 200 cuvinte · textul integral și figurile sunt pe site-ul publicației

Subiecte conexe