Skip to content

Migrate database from MySQL to PostgreSQL #37

Merged
Davictory2003 merged 1 commit intomainfrom
postgrsql
Apr 8, 2026
Merged

Migrate database from MySQL to PostgreSQL #37
Davictory2003 merged 1 commit intomainfrom
postgrsql

Conversation

@Davictory2003
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings April 8, 2026 19:42
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the local/dev Docker setup to switch the application database from MySQL to PostgreSQL.

Changes:

  • Swap the db service in docker-compose.yml from mysql:8.0 to postgres:15, including env vars, port comment, and volume path/name.
  • Update backend database connection URLs from mysql://... to postgres://... in both compose and .env.docker.
  • Replace MySQL client dependencies with PostgreSQL ones (psycopg2-binary, libpq-dev, postgresql-client) and update the container startup wait check to pg_isready.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
docker-compose.yml Switches the DB container to Postgres and updates backend DATABASE_URL + volume.
backend/requirements.txt Replaces mysqlclient with psycopg2-binary for Postgres connectivity.
backend/Dockerfile Installs Postgres client/libs and waits for Postgres readiness before migrations.
backend/.env.docker Updates the documented Docker DATABASE_URL to Postgres.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Davictory2003 Davictory2003 merged commit a007ea7 into main Apr 8, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants