Skip to content

fix(dx): align local Postgres DB defaults with DATABASE_URL (#28106)#28211

Closed
deepshekhardas wants to merge 3 commits intocalcom:mainfrom
deepshekhardas:fix/dx-postgres-db-name-28106
Closed

fix(dx): align local Postgres DB defaults with DATABASE_URL (#28106)#28211
deepshekhardas wants to merge 3 commits intocalcom:mainfrom
deepshekhardas:fix/dx-postgres-db-name-28106

Conversation

@deepshekhardas
Copy link

What does this PR do?

Fix: Align local Postgres DB defaults (POSTGRES_DB vs DATABASE_URL) (#28106)

Problem:
Running yarn workspace @calcom/prisma dx spins up a local Postgres Docker container with the default database name cal-saml, while the app's .env.example and main docker-compose.yml point to calendso. This mismatch causes connection errors during local onboarding on clean volumes.

Changes:

  • Aligned POSTGRES_DB in packages/prisma/docker-compose.yml to calendso to match the .env default.
  • This ensures that local development setup works out-of-the-box without having to discover hidden DB-name differences.

How should this be tested?

  1. Clean your local docker volumes or run yarn workspace @calcom/prisma db-nuke.
  2. Run yarn workspace @calcom/prisma dx.
  3. Verify that the initialized database is named calendso and the application connects cleanly via the default DATABASE_URL.

Fixes #28106

…8106)

Change POSTGRES_DB from 'cal-saml' to 'calendso' in packages/prisma/docker-compose.yml
to match the default DATABASE_URL in the .env template. This ensures that
\yarn workspace @calcom/prisma dx\ works out-of-the-box without manual
configuration.
@deepshekhardas deepshekhardas requested a review from a team as a code owner February 28, 2026 06:37
@graphite-app graphite-app bot added the community Created by Linear-GitHub Sync label Feb 28, 2026
@github-actions github-actions bot added the 🐛 bug Something isn't working label Feb 28, 2026
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Copy link
Member

@sahitya-chandra sahitya-chandra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate pr #28236. Closing this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 bug Something isn't working community Created by Linear-GitHub Sync size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(dx): align local Postgres DB defaults (POSTGRES_DB vs DATABASE_URL)

2 participants