Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions doctrine/doctrine-bundle/2.8/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.36&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"
Copy link
Member

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?

Copy link
Contributor Author

@alexander-schranz alexander-schranz Mar 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Atleast for mysql there is a version_compare for 5.7.9:

And for mariadb a version_compare on 10.2.7:

On the doctrine dbal createDatabasePlatformForVersion method. 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 CLI Local Webserver overwrites the DATABASE_URL with a value without ?serverVersion which ends in unexpected errors for application require the ?serverVersion to be defined correctly: symfony-cli/symfony-cli#108

Copy link
Member

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.

},
"dockerfile": [
"RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev; \\",
Expand Down