-
-
Notifications
You must be signed in to change notification settings - Fork 489
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
add support for override_url #900
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request passes validation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request passes validation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request passes validation.
doctrine/DoctrineBundle#1290 was merged in to 2.3 today - this recipe i believe is safe to merge in now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request passes validation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request passes validation.
doctrine/doctrine-bundle/2.3/config/packages/test/doctrine.yaml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request passes validation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request passes validation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you.
This diff is really small.
# /config/packages/doctrine.yaml
doctrine:
dbal:
+ override_url: true
url: '%env(resolve:DATABASE_URL)%'
# /config/packages/test/doctrine.yaml
+#doctrine:
+# dbal:
+# # Overrides the database name in the test environment only
+# # "host", "port", "username", & "password" can also be set to override their respective url parts
+# #
+# # If you're using ParaTest, "TEST_TOKEN" is set by ParaTest otherwise nothing is appended to the database name.
+# dbname: main_test%env(default::TEST_TOKEN)%
Wohoo. Thank you @jrushlow |
Depends on:
use_savepoints
by default for Doctrine DBAL #1290 Merged into2.3
1290 proposes to add a new
doctrine.dbal.override_url
param that will allow you to override parts of aDATABASE_URL
.