Fix Docker postgres migration and schema initialization#235
Conversation
…ersistence and mounted init directory
|
@anshggss is attempting to deploy a commit to the vishnukothakapu's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
💤 Files with no reviewable changes (1)
✅ Files skipped from review due to trivial changes (1)
📝 WalkthroughWalkthroughThis PR enables Docker-based DB initialization, adding a complete SQL schema (tables, enums, indexes, FKs), updates docker-compose to mount and persist Postgres data, and documents resolving Prisma migration issues. ChangesDatabase Schema and Docker Initialization
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
Hey @vishnukothakapu kindly have a look at the pr and list under GSSOC'26 |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@Anushreebasics kindly verify
|
…nit.sql to support prisma migrations, changed password to password in docker-compose
|
@Anushreebasics I've made the requested changes, kindly review them. |
Title: Fix Docker Postgres setup with data persistence and correct schema initialization
Closes #226
Summary
container startup
Why
Previously, the Docker Postgres container had no data persistence (data was lost on container restart) and no schema — meaning a fresh docker compose up would spin up an empty database that the app couldn't
use. This PR makes the local Docker setup fully self-contained and ready to use without running migrations manually.
Test plan
Summary by CodeRabbit