feat(db): add reset sql path override#5691
Conversation
Supabase CLI previewnpx --yes https://pkg.pr.new/supabase/cli/supabase@faaa7f38de49840b4bf577618f021c0386522287Preview package for commit |
ae9177f to
6fe9dc3
Compare
There was a problem hiding this comment.
💡 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".
6fe9dc3 to
97f1e1d
Compare
There was a problem hiding this comment.
💡 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".
97f1e1d to
faaa7f3
Compare
Adds a repeatable
--sql-pathsflag tosupabase db resetso users can override[db.seed].sql_pathsfor a single reset without editingconfig.toml.The flag accepts the same file path or glob pattern syntax as
sql_paths, resolves relative values from thesupabasedirectory, and remains mutually exclusive with--no-seed. Passing--sql-pathsforce-enables seeding for that reset even when config disables seeding, and remote resets warn before applying override seeds to a--linkedor--db-urltarget. The TypeScript legacy command wrapper forwards the flag to the current Go implementation whiledb resetremains on the legacy path.Addresses #2191
Supersedes #4680