FOMO Daily
Feed
Supabase·

Declarative Schemas 2.0 with pg-delta

DatabasesPostgreSQLSupabaseSchema Migrationspg-delta

TL;DR

Supabase replaced migra with its open-source pg-delta engine because generated migrations missed important Postgres objects and permissions and could not reliably separate user-owned objects from Supabase-managed ones. The new engine compares real database catalogs and orders changes by dependency, producing more complete migrations from SQL schema files and warning about unsupported objects. The edit–generate–review–apply workflow stays the same, but developers still need to check destructive changes, such as column renames generated as drops and additions.

Read the original post Sign in to mark as read or skip