Skip to content

Commit 9e53b01

Browse files
committed
added serverVersion in DATABASE_URL
1 parent 4231f37 commit 9e53b01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doctrine/doctrine-bundle/1.6/manifest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"env": {
1010
"#1": "Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url",
1111
"#2": "For a sqlite database, use: \"sqlite:///%kernel.project_dir%/var/data.db\"",
12-
"DATABASE_URL": "mysql://[email protected]:3306/symfony?charset=utf8mb4"
12+
"#3": "Set \"serverVersion\" to your server version to avoid edge-case exceptions and extra database calls"
13+
"DATABASE_URL": "mysql://[email protected]:3306/symfony?charset=utf8mb4&serverVersion=5.7"
1314
},
1415
"aliases": ["doctrine", "orm"]
1516
}

0 commit comments

Comments
 (0)