Skip to content

fix: only use postgres schema name if explicitly set#883

Merged
mfridman merged 4 commits intomasterfrom
mf/postgres-table-exists
Jan 5, 2025
Merged

fix: only use postgres schema name if explicitly set#883
mfridman merged 4 commits intomasterfrom
mf/postgres-table-exists

Conversation

@mfridman
Copy link
Copy Markdown
Collaborator

@mfridman mfridman commented Jan 4, 2025

Fix #882

This PR updates the postgres table existence check SQL queries. We were previously defaulting in app code to the postgres default of public schema (link), but instead, we should respect whatever a user may have set and let postgres handle it.

Note, we still use the schema if the user explicitly sets a custom table name like schema.table.

@mfridman mfridman merged commit 3c91df1 into master Jan 5, 2025
@mfridman mfridman deleted the mf/postgres-table-exists branch November 16, 2025 17:09
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.

The "postgres migration table existence check" feature added in v3.23.1 is a breaking change for non-default schema

1 participant