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

@jgouxjgoux 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 ownerJune 25, 2026 09:17
@github-actions

github-actionsBot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Supabase CLI preview

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

Preview package for commit faaa7f3.

@chatgpt-codex-connectorchatgpt-codex-connectorBot 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 threadapps/cli/src/legacy/commands/db/reset/reset.handler.ts Outdated
@jgoux
jgouxforce-pushed the db-reset-sql-path-override branch from 6fe9dc3 to 97f1e1dCompareJune 25, 2026 10:34

@chatgpt-codex-connectorchatgpt-codex-connectorBot 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 threadapps/cli/src/legacy/commands/db/reset/reset.command.ts
@jgoux
jgouxforce-pushed the db-reset-sql-path-override branch from 97f1e1d to faaa7f3CompareJune 25, 2026 10:57
@jgoux
jgoux added this pull request to the merge queueJun 25, 2026
Merged via the queue into develop with commit 6fa4c97Jun 25, 2026
28 checks passed
@jgoux
jgoux deleted the db-reset-sql-path-override branch June 25, 2026 11:08
Sign up for freeto 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

@jgoux@Coly010