Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Conversation

mattjohnsonpint
Copy link
Member

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 embed doesn't allow parent directories or symlinks.

@Copilot Copilot AI review requested due to automatic review settings September 4, 2025 04:33
@mattjohnsonpint mattjohnsonpint requested a review from a team as a code owner September 4, 2025 04:33
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 embed limitations 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.

@mattjohnsonpint mattjohnsonpint merged commit 6fc56ca into main Sep 4, 2025
32 checks passed
@mattjohnsonpint mattjohnsonpint deleted the mjp/dbmigrate branch September 4, 2025 04:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant