platformsh / platformify

Get your project ready to be deployed in Platform.sh
MIT License
2 stars 8 forks source link

Wrong DB_SCHEME when upsunifying a Laravel app with PostgreSQL #234

Open thomasdiluccio opened 2 weeks ago

thomasdiluccio commented 2 weeks ago

Laravel internal comes out-of-the-box with a definition for PostgreSQL database. The key defined in their config/database.php is pgsql

CleanShot 2024-09-18 at 17 47 02@2x

CleanShot 2024-09-18 at 17 47 14@2x

In our .environment file, we define export DB_SCHEME="postgresql". It should be pgsql to match Laravel convention.

export DB_SCHEME="pgsql"

# Set Laravel-specific environment variables
export DB_CONNECTION="$DB_SCHEME"