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

add support for override_url #900

Merged
4 commits merged into from
Mar 24, 2021

Conversation

jrushlow
Copy link
Contributor

@jrushlow jrushlow commented Feb 18, 2021

Q A
License MIT
Doc issue/PR doctrine/DoctrineBundle#1290

Depends on:

1290 proposes to add a new doctrine.dbal.override_url param that will allow you to override parts of a DATABASE_URL.

Copy link

@ghost ghost left a 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.

@weaverryan weaverryan changed the title add support for override_url [WIP] add support for override_url Feb 18, 2021
Copy link

@ghost ghost left a 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.

Copy link

@ghost ghost left a 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.

@jrushlow
Copy link
Contributor Author

doctrine/DoctrineBundle#1290 was merged in to 2.3 today - this recipe i believe is safe to merge in now

@jrushlow jrushlow changed the title [WIP] add support for override_url add support for override_url Mar 16, 2021
Copy link

@ghost ghost left a 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.

Copy link

@ghost ghost left a 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.

Copy link

@ghost ghost left a 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.

Copy link

@ghost ghost left a 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.

Copy link
Member

@Nyholm Nyholm left a 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)%

@ghost ghost merged commit 2f9dc57 into symfony:master Mar 24, 2021
@jrushlow jrushlow deleted the feature/doctrine-override-url branch March 24, 2021 19:47
@Nyholm
Copy link
Member

Nyholm commented Mar 24, 2021

Wohoo. Thank you @jrushlow

This pull request was closed.
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.

4 participants