diff --git a/doctrine/doctrine-bundle/1.6/config/packages/doctrine.yaml b/doctrine/doctrine-bundle/1.6/config/packages/doctrine.yaml index 849e3f45..78d13109 100644 --- a/doctrine/doctrine-bundle/1.6/config/packages/doctrine.yaml +++ b/doctrine/doctrine-bundle/1.6/config/packages/doctrine.yaml @@ -1,8 +1,12 @@ doctrine: dbal: # configure these for your database server - driver: 'pdo_mysql' + # use postgresql for PostgreSQL + # use sqlite for SQLite + driver: 'mysql' server_version: '5.7' + + # only needed for MySQL charset: utf8mb4 default_table_options: charset: utf8mb4 diff --git a/doctrine/doctrine-bundle/1.6/manifest.json b/doctrine/doctrine-bundle/1.6/manifest.json index ef228537..99a5ad1d 100644 --- a/doctrine/doctrine-bundle/1.6/manifest.json +++ b/doctrine/doctrine-bundle/1.6/manifest.json @@ -9,7 +9,8 @@ "env": { "#1": "Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url", "#2": "For an SQLite database, use: \"sqlite:///%kernel.project_dir%/var/data.db\"", - "#3": "Configure your db driver and server_version in config/packages/doctrine.yaml", + "#3": "For a PostgreSQL database, use: \"postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=11\"", + "#4": "IMPORTANT: You MUST also configure your db driver and server_version in config/packages/doctrine.yaml", "DATABASE_URL": "mysql://db_user:db_password@127.0.0.1:3306/db_name" } }