Skip to content

Migrate SHP database support to PostgreSQL - #192

Merged
Sarasaidin merged 1 commit into
WellAI789:mainfrom
Sarasaidin:postgres-db-migration
Sep 7, 2026
Merged

Sarasaidin merged 1 commit into
WellAI789:mainfrom
Sarasaidin:postgres-db-migration

Conversation

@Sarasaidin

Copy link
Copy Markdown
Collaborator

Migrates the SHP backend database configuration from MySQL to PostgreSQL and adds a reconciliation migration for the existing PostgreSQL database schema and data.

Changes:

  • Add PostgreSQL/psycopg support
  • Update SQLAlchemy and Alembic database configuration
  • Reconcile existing database schema with current SHP models
  • Preserve existing patient, health data, prediction, recommendation, and user relationships
  • Remove obsolete database structures

The migration has been tested against the existing PostgreSQL database, and local authentication/prediction backend testing has been performed.

@Sarasaidin
Sarasaidin merged commit 90aa53d into WellAI789:main Sep 7, 2026
1 check 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.

1 participant