-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EZP-31744: Added DATABASE_VERSION variable to .env (#576)
* EZP-31744: Added DATABASE_VERSION variable to .env * EZP-31744: Fixed type in env variable name * EZP-31744: Added DATABASE_VERSION to doc/docker/{base-dev.yml,base-prod.yml,install_script.sh}
- Loading branch information
Showing
4 changed files
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,6 +67,9 @@ DATABASE_HOST=db | |
DATABASE_PORT=3306 | ||
DATABASE_PLATFORM=mysql | ||
DATABASE_DRIVER=pdo_mysql | ||
# Needed by Doctrine Bundle / ORM to avoid it opening connection during situations where there is no service yet. | ||
# See: https://symfony.com/doc/current/reference/configuration/doctrine.html#doctrine-dbal-configuration | ||
DATABASE_VERSION=mariadb-10.3.0 | ||
|
||
# Doctrine DBAL Schema | ||
DATABASE_CHARSET=utf8mb4 | ||
|
@@ -86,8 +89,9 @@ APP_SECRET=ff6dc61a329dc96652bb092ec58981f7 | |
###> doctrine/doctrine-bundle ### | ||
# Format described at http://docs.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=${DATABASE_PLATFORM}://${DATABASE_USER}:${DATABASE_PASSWORD}@${DATABASE_HOST}:${DATABASE_PORT}/${DATABASE_NAME} | ||
# For a PostgreSQL database, use:\"postgresql://db_user:[email protected]:5432/db_name?serverVersion=11&charset=utf8" | ||
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml | ||
DATABASE_URL=${DATABASE_PLATFORM}://${DATABASE_USER}:${DATABASE_PASSWORD}@${DATABASE_HOST}:${DATABASE_PORT}/${DATABASE_NAME}?serverVersion=${DATABASE_VERSION} | ||
###< doctrine/doctrine-bundle ### | ||
|
||
###> symfony/swiftmailer-bundle ### | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters