Skip to content

feat(backend): add SQLite to PostgreSQL migration support - #599

Open
shepherd-001 wants to merge 2 commits into
StayLitCodes:mainfrom
shepherd-001:feat/backend-postgresql-migration
Open

feat(backend): add SQLite to PostgreSQL migration support#599
shepherd-001 wants to merge 2 commits into
StayLitCodes:mainfrom
shepherd-001:feat/backend-postgresql-migration

Conversation

@shepherd-001

Copy link
Copy Markdown

Closes #531

Summary

This PR adds an MVP-ready migration path from SQLite to PostgreSQL for the Vaultix backend.

Changes

  • Added database driver selection through DATABASE_DRIVER.
  • Added PostgreSQL connection configuration with connection pooling.
  • Updated TypeORM migrations and entities for PostgreSQL compatibility.
  • Handled JSON and date/time differences between SQLite and PostgreSQL.
  • Added SQLite-to-PostgreSQL data migration support.
  • Updated database health checks to report the configured driver.
  • Added SQLite and PostgreSQL database coverage to CI.
  • Updated environment, Docker, and deployment documentation for PostgreSQL.

Validation

  • Verified existing migrations and entities against PostgreSQL.
  • Confirmed SQLite remains supported for local development.
  • Tested database initialization, migration, and data transfer workflows.
  • Verified PostgreSQL configuration and health-check behavior.

Scope

This is intentionally focused on the required database migration without introducing unnecessary architectural changes.

@drips-wave

drips-wave Bot commented Aug 27, 2026

Copy link
Copy Markdown

@shepherd-001 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

feat(backend): Add database migration from SQLite to PostgreSQL

1 participant