Skip to content

Commit

Permalink
minor #412 Move SQLite DB to the var/ directory (bocharsky-bw)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
javiereguiluz committed Dec 20, 2016
2 parents 1954b4c + 80bb759 commit e9dc416
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 e9dc416

Please sign in to comment.