Why Supabee
The problems Supabee solves.
supabee db reset
Say you are working on an order inventory system with a table like this:
public.orders
| id | customer_id | total | status |
|---|---|---|---|
| a12f… | c38e… | 48.50 | pending |
| b74d… | c38e… | 126.00 | paid |
| d09a… | e51b… | 19.99 | cancelled |
A new requirement replaces the status column, so you write a migration:
alter table public.orders drop column status;
alter table public.orders add column status_id bigint not null default 1;Testing locally with supabase migration up succeeds. supabase db push would work against the existing database too:
public.orders
| id | customer_id | total | status | status_id |
|---|---|---|---|---|
| a12f… | c38e… | 48.50 | pending | 1 |
| b74d… | c38e… | 126.00 | paid | 1 |
| d09a… | e51b… | 19.99 | cancelled | 1 |
The problem
After you push the migration, CI may run supabase db reset, or a teammate may run it locally. Reset reloads the seed, exposing a problem the earlier migration checks did not catch.
The status column no longer exists because the migration already replaced it with status_id before seeding. You may get an error like this:
Applying migration 20260310090000_replace_order_status.sql...
Seeding data from supabase/seed.sql...
ERROR: column "status" of relation "orders" does not exist (SQLSTATE 42703)public.orders
| id | customer_id | total | status_id |
|---|---|---|---|
| a12f… | c38e… | 48.50 | pending |
| b74d… | c38e… | 126.00 | paid |
| d09a… | e51b… | 19.99 | cancelled |
The difference is the sequence: supabase db reset applies every migration first, then loads the seed. supabase db push and supabase migration up apply migrations to the existing database without reloading the seed.
The solution
The simplest workaround is to change the seed script so it no longer inserts the removed status column. But with a large database, keeping seed data compatible with every schema change quickly becomes impractical.
supabee sync data
supabase db dump --data-only dumps your seed data into a single file. On the same orders table.
For data-intensive projects, a single file becomes difficult to review and edit. Every table change is buried in one enormous diff, and reproducing a bug means finding the right rows among everything else.
For example, you change a few rows to reproduce a bug or empty a table to check a blank state. With one giant file, every round starts by searching for those rows again.
supabee sync data dumps the data and splits it into numbered files in load order, then reconstructs and validates the result so you know the split files still load.
Per-table files are numbered in load order. The split is by size, not just by table, so a table with a hundred thousand rows can become several files while small tables get one or two.
supabee sync schema
supabase db dump has the same shape of problem. Your whole schema arrives as one file: every table, function, type, policy, and trigger in the project, in one place.
Declarative schemas
Other than being difficult to review and edit, Supabase's declarative workflow wants a readable schema definition, the same way Prisma, Drizzle or Django let you edit one table definition and generate the migration from it.
The solution
supabee sync schema keeps the dump's valid order while splitting it into a folder tree, one file per object. It records the source lines and full sequence so Supabee can rebuild and validate the result without you managing dependencies yourself.