Skip to content

Commit 2615325

Browse files
committed
minor #862 Moved the SQLite database to data/ dir (javiereguiluz)
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
2 parents 611fc54 + 7380316 commit 2615325

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.env.dist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ APP_SECRET=67d829bf61dc5f87a73fd814e2c9f629
1010

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

1818
###> symfony/swiftmailer-bundle ###
File renamed without changes.
File renamed without changes.

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<!-- define your env variables for the test env here -->
1818

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

2323
<!-- ###+ symfony/swiftmailer-bundle ### -->

0 commit comments

Comments
 (0)