Skip to content

Commit 14dae5f

Browse files
turegjorupclaude
andcommitted
fix: restore preceding-comment for DATABASE_URL after env reorder
The previous arrangement put MARIADB_VERSION directly above DATABASE_URL with no intervening comment, which fails scripts/check-env-coverage.sh's "every variable in .env has a preceding description comment" rule. Move MARIADB_VERSION (with its own comment block) above the DATABASE_URL comment block so both variables retain a comment immediately above them. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 8d30be3 commit 14dae5f

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.env

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@ TRUSTED_PROXIES=127.0.0.1,REMOTE_ADDR
3030
###< symfony/framework-bundle ###
3131

3232
###> doctrine/doctrine-bundle ###
33+
# Doctrine `serverVersion` for dialect selection — must match the running
34+
# MariaDB. Default tracks the docker-compose default (mariadb:11.4);
35+
# override MARIADB_VERSION (and the matching MARIADB_IMAGE in compose) to
36+
# test against 10.11.
37+
MARIADB_VERSION=11.4.4-MariaDB
3338
# Database connection string for MariaDB/MySQL.
3439
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
3540
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
3641
#
3742
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
38-
# Doctrine's `serverVersion` controls the dialect, so it must match the
39-
# MariaDB you actually run. Default tracks the docker-compose default
40-
# (mariadb:11.4); override MARIADB_VERSION (and the matching MARIADB_IMAGE
41-
# in compose) to test against 10.11.
42-
MARIADB_VERSION=11.4.4-MariaDB
4343
DATABASE_URL="mysql://db:db@mariadb:3306/db?serverVersion=${MARIADB_VERSION}"
4444
#DATABASE_URL="postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8"
4545
###< doctrine/doctrine-bundle ###

0 commit comments

Comments
 (0)