Skip to content

fix(db): respect schema_paths order in diff#5706

Open
pjpjq wants to merge 2 commits into
supabase:developfrom
pjpjq:codex/respect-schema-paths-order
Open

fix(db): respect schema_paths order in diff#5706
pjpjq wants to merge 2 commits into
supabase:developfrom
pjpjq:codex/respect-schema-paths-order

Conversation

@pjpjq

@pjpjq pjpjq commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Preserve explicit [db.migrations].schema_paths order when preparing declared schemas for db diff.
  • Expand directory schema path entries deterministically without overriding explicit file/glob order.
  • Use pg-delta declarative apply only when schema_paths is unset or points directly at the declarative directory.

Fixes #3854

Testing

  • go test ./internal/db/diff ./internal/db/declarative ./cmd

@pjpjq pjpjq requested a review from a team as a code owner June 26, 2026 04:23
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.

db diff -f <name> ignores schema_paths order from config.toml

2 participants