Add Database Migration Tools for PostgreSQL and MongoDB - #112
Merged
Conversation
Contributor
Author
Added schema validators for this. |
Contributor
Author
|
@LuckierDodge Should be ready to review for the second time |
RyanTheRobothead
self-requested a review
November 17, 2025 18:12
Refactor: Separate DB backup into standalone tool
RyanTheRobothead
previously approved these changes
Dec 4, 2025
RyanTheRobothead
approved these changes
Dec 4, 2025
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.
PR Info
Implements database migration tools for MADSci's Resource Manager (PostgreSQL), Event Manager (MongoDB), and Data Manager (MongoDB) with automated version checking and safe schema evolution.
Breaking Changes
PostgreSQL Migration (Resource Manager)
pg_dump/psqlwith rollback on migration failureMongoDB Migration (Event & Data Managers)
schema_versionscollection in each databasemongodump/mongorestoreServer Integration
All servers now perform version validation on startup:
madsci_events.schema_versionsmadsci_data.schema_versionsServers refuse to start on version mismatch and display clear migration instructions.
Migration Commands
Docker Usage
Docker Usage
Schema Management
Safety Features
Closes: #92
Developer Checklists
I have: