Skip to content

feat(db): add reset sql path override#5691

Merged
jgoux merged 1 commit into
developfrom
db-reset-sql-path-override
Jun 25, 2026
Merged

feat(db): add reset sql path override#5691
jgoux merged 1 commit into
developfrom
db-reset-sql-path-override

Conversation

@jgoux

@jgoux jgoux commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Adds a repeatable --sql-paths flag to supabase db reset so users can override [db.seed].sql_paths for a single reset without editing config.toml.

The flag accepts the same file path or glob pattern syntax as sql_paths, resolves relative values from the supabase directory, and remains mutually exclusive with --no-seed. Passing --sql-paths force-enables seeding for that reset even when config disables seeding, and remote resets warn before applying override seeds to a --linked or --db-url target. The TypeScript legacy command wrapper forwards the flag to the current Go implementation while db reset remains on the legacy path.

Addresses #2191
Supersedes #4680

@jgoux jgoux requested a review from a team as a code owner June 25, 2026 09:17
@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@faaa7f38de49840b4bf577618f021c0386522287

Preview package for commit faaa7f3.

@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: 6fe9dc390d

ℹ️ 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/src/legacy/commands/db/reset/reset.handler.ts Outdated
@jgoux jgoux force-pushed the db-reset-sql-path-override branch from 6fe9dc3 to 97f1e1d Compare June 25, 2026 10:34

@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: 97f1e1d71a

ℹ️ 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/src/legacy/commands/db/reset/reset.command.ts
@jgoux jgoux force-pushed the db-reset-sql-path-override branch from 97f1e1d to faaa7f3 Compare June 25, 2026 10:57
@jgoux jgoux added this pull request to the merge queue Jun 25, 2026
Merged via the queue into develop with commit 6fa4c97 Jun 25, 2026
28 checks passed
@jgoux jgoux deleted the db-reset-sql-path-override branch June 25, 2026 11:08
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.

2 participants