-
-
Notifications
You must be signed in to change notification settings - Fork 504
Add mariadb example to DATABASE_URL #1186
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
Merged
Merged
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
27a6a70
Add mariadb example to DATABASE_URL
alexander-schranz 50d75d4
Apply change requests
alexander-schranz fad35c5
Use same casing as in the doctrine/dbal mariadb docs
alexander-schranz 05f13e4
Update doctrine/doctrine-bundle/2.8/manifest.json
alexander-schranz 475a42a
Use only major version for postgresql serverVersion
alexander-schranz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,8 +11,9 @@ | |
| "#2": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml", | ||
| "#3": "", | ||
| "#4": "DATABASE_URL=\"sqlite:///%kernel.project_dir%/var/data.db\"", | ||
| "#5": "DATABASE_URL=\"mysql://app:[email protected]:3306/app?serverVersion=8&charset=utf8mb4\"", | ||
| "DATABASE_URL": "postgresql://app:[email protected]:5432/app?serverVersion=15&charset=utf8" | ||
| "#5": "DATABASE_URL=\"mysql://app:[email protected]:3306/app?serverVersion=8.0.32&charset=utf8mb4\"", | ||
| "#6": "DATABASE_URL=\"mysql://app:[email protected]:3306/app?serverVersion=10.11.2-MariaDB&charset=utf8mb4\"", | ||
| "DATABASE_URL": "postgresql://app:[email protected]:5432/app?serverVersion=15.2&charset=utf8" | ||
| }, | ||
| "dockerfile": [ | ||
| "RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev; \\", | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Using "full" version looks pretty annoying to me. It means you need to be sure you keep this in sync with your DB version. Is it really needed for all platforms?
Uh oh!
There was an error while loading. Please reload this page.
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.
Atleast for
mysqlthere is a version_compare for5.7.9:And for mariadb a version_compare on
10.2.7:On the doctrine dbal
createDatabasePlatformForVersionmethod. So there make it sense to define it from my point of view.We could remove it from postgresql currently? @derrabus what do you think, is that still future proof?
PS: Currently
Symfony CLILocal Webserver overwrites theDATABASE_URLwith a value without?serverVersionwhich ends in unexpected errors for application require the?serverVersionto be defined correctly: symfony-cli/symfony-cli#108There 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.
For MySQL flavors we do need the full version. Oracle keeps shipping features and deprecating stuff in 8.0.x releases, unfortunately.