• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / cli / 28441593894
65%
develop: 65%

Build:
Build:
LAST BUILD BRANCH: dependabot/go_modules/apps/cli-go/pkg/golang.org/x/crypto-0.52.0
DEFAULT BRANCH: develop
Ran 30 Jun 2026 11:43AM UTC
Jobs 1
Files 229
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 Jun 2026 11:40AM UTC coverage: 65.001%. Remained the same
28441593894

push

github

web-flow
feat(cli): port migration commands to native TypeScript (CLI-1312) (#5671)

## What changed

Ports 6 of 7 `supabase migration` subcommands from Go-proxy delegates to
native Effect/TypeScript in the legacy shell:

- `migration new` — writes `supabase/migrations/<ts>_<name>.sql` from
piped stdin
- `migration list` — merged Local / Remote / Time-UTC Glamour table;
defaults to `--linked`
- `migration fetch` — writes history rows to `supabase/migrations/`;
overwrite prompt
- `migration repair` — transactional create-table +
TRUNCATE/UPSERT/DELETE; repair-all prompt
- `migration up` — pending compute, `[db.vault]` upsert, per-file apply;
`--include-all`
- `migration down` — revert prompt → drop user schemas → vault →
migrate&seed to target version

Shared infra: consolidated `legacy-migration-history.ts` (SQL +
reconcile/pending/read helpers), hoisted `legacy-migration-file.ts` out
of `db/shared`, new `legacy-drop-objects.ts` / `legacy-vault.ts` /
`legacy-seed.ts` (with an `fs.Glob` port) /
`legacy-migrate-and-seed.ts`, and a `legacyReadDbToml` extension for
`[db.seed]` / `[db.vault]` / `[db.migrations]`. `db diff` / `db pull` /
declarative call sites were re-pointed to the consolidated module.

## Why

Replaces the last `migration` Go-proxy handlers with native
implementations (M5: Database & Migrations, CLI-1312), removing the
Go-binary dependency for these commands while preserving Go output /
flag / exit-code parity.

## Reviewer notes

- **`migration squash` is intentionally still a Go-proxy delegate.** A
native squash would emit pg-delta diff format instead of Go's `pg_dump`
bytes — a documented divergence (CLI-1597) that is *not* byte parity —
and needs a bare-baseline-shadow seam mode that does not exist yet. Kept
on the proxy (byte-identical to Go) until CLI-1597's rewrite, similar to
`db diff --use-pgadmin`.
- **`migration up` does not seed** — matches Go (`up.Run` only applies
migrations + upserts vault; seeding is `down`-only via
`MigrateAndSeed... (continued)

10982 of 16895 relevant lines covered (65.0%)

10.44 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
82.41
0.0% internal/storage/rm/rm.go
Jobs
ID Job ID Ran Files Coverage
1 28441593894.1 30 Jun 2026 11:43AM UTC 229
65.0
GitHub Action Run
Source Files on build 28441593894
  • Tree
  • List 229
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28441593894
  • b48fad60 on github
  • Prev Build on develop (#28431462434)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc