Skip to content

Commit

Permalink
Move SQLite DB to the var/ directory
Browse files Browse the repository at this point in the history
  • Loading branch information
bocharsky-bw authored and javiereguiluz committed Dec 20, 2016
1 parent 1954b4c commit 80bb759
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -5,6 +5,7 @@
!/var/cache
/var/cache/*
!var/cache/.gitkeep
!/var/data
!/var/logs
/var/logs/*
!var/logs/.gitkeep
Expand Down
2 changes: 1 addition & 1 deletion app/config/config_test.yml
Expand Up @@ -21,7 +21,7 @@ web_profiler:
# In this case we just need to define a different path for the application database.
doctrine:
dbal:
path: "%kernel.root_dir%/data/blog_test.sqlite"
path: "%kernel.root_dir%/../var/data/blog_test.sqlite"

# this configuration simplifies testing URLs protected by the security mechanism
# See http://symfony.com/doc/current/cookbook/testing/http_authentication.html
Expand Down
2 changes: 1 addition & 1 deletion app/config/parameters.yml.dist
Expand Up @@ -17,7 +17,7 @@ parameters:
# this demo application uses an embedded SQLite database to simplify setup.
# in a real Symfony application you probably will use a MySQL or PostgreSQL database
# the path must be relative or else it will not work on Windows
env(DATABASE_URL): 'sqlite:///%kernel.root_dir%/data/blog.sqlite'
env(DATABASE_URL): 'sqlite:///%kernel.root_dir%/../var/data/blog.sqlite'

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

0 comments on commit 80bb759

Please sign in to comment.