Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix using schema option with connection option #2316

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

MasterOdin
Copy link
Member

@MasterOdin MasterOdin commented Oct 3, 2024

Closes #2315

Fixes a bug where if using the connection and schema options, the adapter would attempt to create the migrations log table in the default schema (public) vs the one in the schema option.

This was due to PdoAdapter calling setConnection if connection was set, and as part of that logic the migration log table is created. The fix is to just make sure we set $schema before we call parent::setOptions in the PostgresAdapter.

@MasterOdin MasterOdin marked this pull request as ready for review October 3, 2024 15:28
@MasterOdin MasterOdin merged commit 31d837c into 0.x Oct 3, 2024
14 checks passed
@MasterOdin MasterOdin deleted the fix-connection-option branch October 3, 2024 15:41
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.

PSQL - Issue with Phinx if migration_table is not in the public schema
1 participant