Skip to content

Fix #2: Qualify internal migrations table references#3

Open
tnht95 wants to merge 3 commits into
mainfrom
fix-search-path
Open

Fix #2: Qualify internal migrations table references#3
tnht95 wants to merge 3 commits into
mainfrom
fix-search-path

Conversation

@tnht95

@tnht95 tnht95 commented Jun 20, 2026

Copy link
Copy Markdown
Owner

Changes

  • Schema-qualified all references to the internal migrations table to prevent them from being affected by changes to the session search_path.
  • Added a configurable schema option (default: public) for the migration metadata table.
  • Added a -s / --schema CLI flag to allow specifying the schema used for pgroll's internal migration table.
  • Updated migration bookkeeping to execute sequentially after the migration succeeds, ensuring the migration state accurately reflects the database state.

Fixes #2

@scott-dn

Copy link
Copy Markdown
Collaborator

please add tests.

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.

Internal migrations table is not schema-qualified — breaks when a migration sets search_path

2 participants