Skip to content

Commit

Permalink
Merge pull request symfony#258
Browse files Browse the repository at this point in the history
  • Loading branch information
symfony-flex-server[bot] authored Nov 23, 2017
2 parents 391c470 + 2efa651 commit 119f74f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
12 changes: 12 additions & 0 deletions doctrine/doctrine-bundle/1.6/config/packages/doctrine.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
parameters:
# Adds a fallback DATABASE_URL if the env var is not set.
# This allows you to run cache:warmup even if your
# environment variables are not available yet.
# You should not need to change this value.
env(DATABASE_URL): ''

doctrine:
dbal:
# configure these for your database server
driver: 'pdo_mysql'
server_version: '5.7'
charset: utf8mb4

# With Symfony 3.3, remove the `resolve:` prefix
url: '%env(resolve:DATABASE_URL)%'
orm:
Expand Down
4 changes: 2 additions & 2 deletions doctrine/doctrine-bundle/1.6/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"env": {
"#1": "Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url",
"#2": "For an SQLite database, use: \"sqlite:///%kernel.project_dir%/var/data.db\"",
"#3": "Set \"serverVersion\" to your server version to avoid edge-case exceptions and extra database calls",
"DATABASE_URL": "mysql://db_user:[email protected]:3306/db_name?charset=utf8mb4&serverVersion=5.7"
"#3": "Configure your db driver and server_version in config/packages/doctrine.yaml",
"DATABASE_URL": "mysql://db_user:[email protected]:3306/db_name"
}
}
8 changes: 8 additions & 0 deletions doctrine/doctrine-bundle/1.6/post-install.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<bg=blue;fg=white> </>
<bg=blue;fg=white> Next: Configuration </>
<bg=blue;fg=white> </>

* Modify your DATABASE_URL config in <fg=green>.env</>

* Configure the <fg=green>driver</> (mysql) and
<fg=green>server_version</fg> (5.7) in <fg=green>config/packages/doctrine.yaml</>

0 comments on commit 119f74f

Please sign in to comment.