Skip to content

Commit ef5dd0b

Browse files
committed
minor #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

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

doctrine.rst

Lines 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)