Updated doctrine recipes.

This commit is contained in:
Jan Böhmer 2020-01-07 18:48:34 +01:00
parent 6388c92afc
commit 64cf8097bc
4 changed files with 19 additions and 41 deletions

8
.env
View file

@ -21,10 +21,12 @@ APP_SECRET=7915fd8481d1a52cf42010ebe2caa974
###< symfony/framework-bundle ###
###> doctrine/doctrine-bundle ###
# Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
# Configure your db driver and server_version in config/packages/doctrine.yaml
DATABASE_URL=mysql://root:@127.0.0.1:3306/part-db
# For a PostgreSQL database, use: "postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=11&charset=utf8"
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
#DATABASE_URL=mysql://root:@127.0.0.1:3306/part-db?serverVersion=5.7
DATABASE_URL=mysql://root:@127.0.0.1:3306/part-db?serverVersion=5.7
###< doctrine/doctrine-bundle ###
### Custom vars