Skip to content

Fix migration using wrong config key for database connection#3

Open
craigpotter wants to merge 1 commit intomainfrom
fix/migration-config-key
Open

Fix migration using wrong config key for database connection#3
craigpotter wants to merge 1 commit intomainfrom
fix/migration-config-key

Conversation

@craigpotter
Copy link
Copy Markdown
Collaborator

Summary

  • The migration stub was referencing barstool.database_connection but the actual config key is barstool.connection
  • Uses null coalescing to fall back to the old key for backwards compatibility with anyone who may have published the migration with the old key
  • Adds test coverage for the migration connection config

Test plan

  • New test verifies barstool.connection is used
  • New test verifies fallback to barstool.database_connection
  • New test verifies barstool.connection takes priority when both are set
  • Full test suite passes (18 tests, 129 assertions)
  • PHPStan passes

The migration stub was referencing `barstool.database_connection` but the
actual config key is `barstool.connection`. Uses null coalescing to fall
back to the old key for backwards compatibility.
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.

1 participant