From: Raphaƫl Gertz Date: Sun, 29 Oct 2023 00:50:12 +0000 (+0200) Subject: Default doctrine bundle config X-Git-Url: https://git.rapsys.eu/blog/commitdiff_plain/c0dccd03dcd472f5bcb3913e914a97a36f9d6d0c?ds=sidebyside Default doctrine bundle config --- diff --git a/.env b/.env index 6507377..ff6d410 100644 --- a/.env +++ b/.env @@ -18,3 +18,13 @@ APP_ENV=dev APP_SECRET=Ch4ng3m3! ###< symfony/framework-bundle ### + +###> doctrine/doctrine-bundle ### +# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url +# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml +# +# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db" +# DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=8.0.32&charset=utf8mb4" +# DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=10.11.2-MariaDB&charset=utf8mb4" +DATABASE_URL="postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=15&charset=utf8" +###< doctrine/doctrine-bundle ###