feat(db): implement database migration system with version tracking a… - #295
Open
uche102 wants to merge 2 commits into
Open
feat(db): implement database migration system with version tracking a…#295uche102 wants to merge 2 commits into
uche102 wants to merge 2 commits into
Conversation
…nd rollback support
|
@uche102 is attempting to deploy a commit to the Jaja's projects Team on Vercel. A member of the Team first needs to authorize it. |
devJaja
self-requested a review
August 24, 2026 00:28
Contributor
|
nice implementation @uche102 Kindly resolve the conflicts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
File Action Description
backend/src/db/migrations/003_create_schema_migrations.sql New Migration file creating schema_migrations tracking table
backend/src/db/migrations/tracker.ts New Version tracking helper module
backend/src/db/migrations/runner.ts New Core migration execution & rollback engine
backend/src/db/migrations/index.ts New Public migration API exports
backend/src/db/migrations/runner.test.ts New Unit test suite for migration lifecycle
backend/src/db/migrations/001_add_stats_indexes.sql Modify Added -- DOWN block for rollback
backend/src/db/migrations/002_create_tasks_table.sql Modify Added -- DOWN block for rollback
backend/src/config/index.ts Modify Added AUTO_MIGRATE configuration option
backend/src/index.ts Modify Runs migrations on server startup
backend/src/api/routes/health.ts Modify Implemented GET /migrations handler
backend/src/api/app.ts Modify Mounted GET /migrations route
-Closes #274