Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ef5dd0b

Browse filesBrowse files
committed
minor symfony#13973 Update doctrine.rst (abdounikarim)
This PR was merged into the 4.4 branch. Discussion ---------- Update doctrine.rst I updated `.env` and add postgresql configuration. Commits ------- 8060d7e Update doctrine.rst
2 parents 7fa937a + 8060d7e commit ef5dd0b
Copy full SHA for ef5dd0b

File tree

Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed

‎doctrine.rst

Copy file name to clipboardExpand all lines: doctrine.rst
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,13 @@ The database connection information is stored as an environment variable called
4444
# .env (or override DATABASE_URL in .env.local to avoid committing your changes)
4545
4646
# customize this line!
47-
DATABASE_URL="mysql://db_user:db_password@127.0.0.1:3306/db_name"
47+
DATABASE_URL="mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7"
4848
4949
# to use sqlite:
5050
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/app.db"
51+
52+
# to use postgresql:
53+
# DATABASE_URL="postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=11&charset=utf8"
5154
5255
.. caution::
5356

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.