mirror of
https://github.com/symfony/recipes.git
synced 2026-09-12 07:36:30 +03:00
Moving some params
This commit is contained in:
@@ -1,13 +1,9 @@
|
||||
parameters:
|
||||
# update these for your app
|
||||
doctrine.database_server: mysql
|
||||
doctrine.server_version: 5.7
|
||||
|
||||
# adds a fallback URL if the env var is not set
|
||||
# this is useful to allow you to run cache:warmup
|
||||
# even when your environment variables don't yet exist
|
||||
# you should not need to change this value
|
||||
DATABASE_URL: '%doctrine.database_server%://'
|
||||
env(DATABASE_URL): '%doctrine.database_server%://'
|
||||
|
||||
doctrine:
|
||||
dbal:
|
||||
|
||||
@@ -11,5 +11,9 @@
|
||||
"#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:db_password@127.0.0.1:3306/db_name?charset=utf8mb4"
|
||||
},
|
||||
"container": {
|
||||
"doctrine.database_server": "mysql",
|
||||
"doctrine.server_version": "5.7"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,4 +5,4 @@
|
||||
* Modify your DATABASE_URL config in <fg=green>.env</>
|
||||
|
||||
* Configure the <fg=green>database_server</> (mysql) and
|
||||
<fg=green>server_version</fg> (5.7) in <fg=green>config/packages/doctrine.yaml</>
|
||||
<fg=green>server_version</fg> (5.7) in <fg=green>config/services.yaml</>
|
||||
|
||||
Reference in New Issue
Block a user