Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit 91be4f8

Browse files
committed
minor #711 Improve pdo_sqlite using info (aivus)
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #711). Discussion ---------- Improve pdo_sqlite using info 1. Line with `path` declaration should be uncommented in config.yml for use `database_path` 2. Line with `database_path` declaration should be uncommented in parameters.yml.dist, because any composer commands (which call `post-install-cmd` or `post-update-cmd`) remove `database_path` from parameters.yml Commits ------- f1aa7f8 Improve pdo_sqlite using info
2 parents fd35c24 + f1aa7f8 commit 91be4f8

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

app/config/config.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,12 @@ doctrine:
4949
user: "%database_user%"
5050
password: "%database_password%"
5151
charset: UTF8
52-
# if using pdo_sqlite as your database driver, add the path in parameters.yml
53-
# e.g. database_path: "%kernel.root_dir%/data/data.db3"
54-
# path: "%database_path%"
52+
# if using pdo_sqlite as your database driver:
53+
# 1. add the path in parameters.yml
54+
# e.g. database_path: "%kernel.root_dir%/data/data.db3"
55+
# 2. Uncomment database_path in parameters.yml.dist
56+
# 3. Uncomment next line:
57+
# path: "%database_path%"
5558

5659
orm:
5760
auto_generate_proxy_classes: "%kernel.debug%"

app/config/parameters.yml.dist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ parameters:
55
database_name: symfony
66
database_user: root
77
database_password: ~
8+
# You should uncomment this if you want use pdo_sqlite
9+
# database_path: "%kernel.root_dir%/data.db3"
810

911
mailer_transport: smtp
1012
mailer_host: 127.0.0.1

0 commit comments

Comments
 (0)