Skip to content

Commit

Permalink
minor #862 Moved the SQLite database to data/ dir (javiereguiluz)
Browse files Browse the repository at this point in the history
This PR was merged into the master branch.

Discussion
----------

Moved the SQLite database to data/ dir

Idea proposed in #861.

Commits
-------

7380316 Moved the SQLite database to data/ dir
  • Loading branch information
javiereguiluz committed Oct 4, 2018
2 parents 611fc54 + 7380316 commit 2615325
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ APP_SECRET=67d829bf61dc5f87a73fd814e2c9f629

###> doctrine/doctrine-bundle ###
# Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# For a sqlite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
# Set "serverVersion" to your server version to avoid edge-case exceptions and extra database calls
DATABASE_URL=sqlite:///%kernel.project_dir%/var/data/blog.sqlite
# For a MySQL database, use: "mysql://db_user:[email protected]:3306/db_name"
# Configure your db driver and server_version in config/packages/doctrine.yaml
DATABASE_URL=sqlite:///%kernel.project_dir%/data/database.sqlite
###< doctrine/doctrine-bundle ###

###> symfony/swiftmailer-bundle ###
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<!-- define your env variables for the test env here -->

<!-- ###+ doctrine/doctrine-bundle ### -->
<env name="DATABASE_URL" value="sqlite:///var/data/blog_test.sqlite"/>
<env name="DATABASE_URL" value="sqlite:///data/database_test.sqlite"/>
<!-- ###- doctrine/doctrine-bundle ### -->

<!-- ###+ symfony/swiftmailer-bundle ### -->
Expand Down

0 comments on commit 2615325

Please sign in to comment.