mirror of
https://github.com/symfony/recipes.git
synced 2026-09-11 23:26:27 +03:00
Update note about server version
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
doctrine:
|
||||
dbal:
|
||||
# IMPORTANT: DATABASE_URL *must* define the server version
|
||||
url: '%env(resolve:DATABASE_URL)%'
|
||||
|
||||
# IMPORTANT: You MUST configure your server version,
|
||||
# either here or in the DATABASE_URL env var (see .env file)
|
||||
#server_version: '13'
|
||||
orm:
|
||||
auto_generate_proxy_classes: true
|
||||
naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
},
|
||||
"env": {
|
||||
"#1": "Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url",
|
||||
"#2": "IMPORTANT: DATABASE_URL *must* define the server version",
|
||||
"#2": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml",
|
||||
"#3": "",
|
||||
"#4": "DATABASE_URL=\"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"#5": "DATABASE_URL=\"mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7\"",
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
doctrine:
|
||||
dbal:
|
||||
# IMPORTANT: DATABASE_URL *must* define the server version
|
||||
url: '%env(resolve:DATABASE_URL)%'
|
||||
|
||||
# IMPORTANT: You MUST configure your server version,
|
||||
# either here or in the DATABASE_URL env var (see .env file)
|
||||
#server_version: '13'
|
||||
orm:
|
||||
auto_generate_proxy_classes: true
|
||||
naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
},
|
||||
"env": {
|
||||
"#1": "Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url",
|
||||
"#2": "IMPORTANT: DATABASE_URL *must* define the server version",
|
||||
"#2": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml",
|
||||
"#3": "",
|
||||
"#4": "DATABASE_URL=\"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"#5": "DATABASE_URL=\"mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7\"",
|
||||
|
||||
@@ -3,3 +3,6 @@
|
||||
<bg=blue;fg=white> </>
|
||||
|
||||
* Modify your DATABASE_URL config in <fg=green>.env</>
|
||||
|
||||
* Configure the <fg=green>driver</> (postgresql) and
|
||||
<fg=green>server_version</> (13) in <fg=green>config/packages/doctrine.yaml</>
|
||||
|
||||
Reference in New Issue
Block a user