8000 minor #412 Move SQLite DB to the var/ directory (bocharsky-bw) · symfony/demo@e9dc416 · GitHub
[go: up one dir, main page]

Skip to content

Commit e9dc416

Browse files
10000 committed
minor #412 Move SQLite DB to the var/ directory (bocharsky-bw)
This PR was squashed before being merged into the master branch (closes #412). Discussion ---------- Move SQLite DB to the var/ directory According to the changes in Symfony SE: symfony/symfony-standard#1032 Commits ------- 80bb759 Move SQLite DB to the var/ directory
2 parents 1954b4c + 80bb759 commit e9dc416

File tree

5 files changed

+3
-2
lines changed

5 files changed

+3
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
!/var/cache
66
/var/cache/*
77
!var/cache/.gitkeep
8+
!/var/data
89
!/var/logs
910
/var/logs/*
1011
!var/logs/.gitkeep

app/config/config_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ web_profiler:
2121
# In this case we just need to define a different path for the application database.
2222
doctrine:
2323
dbal:
24-
path: "%kernel.root_dir%/data/blog_test.sqlite"
24+
path: "%kernel.root_dir%/../var/data/blog_test.sqlite"
2525

2626
# this configuration simplifies testing URLs protected by the security mechanism
2727
# See http://symfony.com/doc/current/cookbook/testing/http_authentication.html

app/config/parameters.yml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ parameters:
1717
# this demo application uses an embedded SQLite database to simplify setup.
1818
# in a real Symfony application you probably will use a MySQL or PostgreSQL database
1919
# the path must be relative or else it will not work on Windows
20-
env(DATABASE_URL): 'sqlite:///%kernel.root_dir%/data/blog.sqlite'
20+
env(DATABASE_URL): 'sqlite:///%kernel.root_dir%/../var/data/blog.sqlite'
2121

2222
# Uncomment this line to use a MySQL database instead of SQLite (and remove
2323
# the "doctrine" section from config_dev.yml regarding SQLite):
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)
0