This repository was archived by the owner on Sep 11, 2025. It is now read-only.
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds a database migration tool to support installing Modus into production environments other than Hypermode. The tool embeds SQL migration scripts and provides a simple Go-based utility to apply database schema changes to PostgreSQL databases.
Key changes:
- Creates a standalone Go tool for database migrations with embedded SQL scripts
- Adds physical copies of migration scripts due to
go embedlimitations with parent directories - Integrates the migration tool into the build process to keep scripts synchronized
Reviewed Changes
Copilot reviewed 20 out of 21 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tools/modus-dbmigrate/main.go | Core migration tool implementation with embedded filesystem and database connection handling |
| tools/modus-dbmigrate/go.mod | Go module definition specifying Go 1.25.0 and migration dependencies |
| tools/modus-dbmigrate/README.md | Documentation for installation and usage of the migration tool |
| tools/modus-dbmigrate/migrations/*.sql | Physical copies of database migration scripts for embedding |
| runtime/Makefile | Build process integration to copy migration scripts from runtime to tool directory |
| go.work | Workspace configuration to include the new migration tool module |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Adds a db migration tool, useful when installing Modus into a production environment other than Hypermode.
Note that the migration scripts are physical copies because
go embeddoesn't allow parent directories or symlinks.