Skip to content

feat(db): support gzipped SQL seeds#5692

Draft
jgoux wants to merge 4 commits into
developfrom
feat/sql-gz-seeds
Draft

feat(db): support gzipped SQL seeds#5692
jgoux wants to merge 4 commits into
developfrom
feat/sql-gz-seeds

Conversation

@jgoux

@jgoux jgoux commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Adds support for configured seed files ending in .sql.gz during db reset.

The implementation decompresses gzip input before parsing and executing seed SQL, and hashes the decompressed SQL content for seed history so equivalent recompressions do not mark seeds dirty. Config templates, generated schema text, and reset docs now mention .sql.gz support.

This is an alternative implementation to #5105 in the current Go-backed db reset path. The current TypeScript command layer still delegates db reset to legacy Go; if native TypeScript seed loading lands separately, it should mirror the same decompressed-content hashing behavior.

@jgoux jgoux marked this pull request as ready for review June 25, 2026 09:20
@jgoux jgoux requested a review from a team as a code owner June 25, 2026 09:20
@github-actions

github-actions Bot commented Jun 25, 2026

Copy link
Copy Markdown

Supabase CLI preview

npx --yes https://pkg.pr.new/supabase/cli/supabase@15d8a3565e674dab7ae71dee9177db024dd1e37a

Preview package for commit 15d8a35.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1a88f710b5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread apps/cli-go/pkg/migration/file.go Outdated
@jgoux jgoux marked this pull request as draft June 25, 2026 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant