Skip to content

Add auto-migration mode for local deployments#94

Merged
piercefreeman merged 2 commits intomainfrom
feature/magic-migrations
Mar 8, 2026
Merged

Add auto-migration mode for local deployments#94
piercefreeman merged 2 commits intomainfrom
feature/magic-migrations

Conversation

@piercefreeman
Copy link
Copy Markdown
Owner

@piercefreeman piercefreeman commented Dec 23, 2025

This PR adds a new connection.magic_migrate() command that will poll the current database for its migration status, then auto-generate a forward migration that can resolve the current db values.

This should only be done for local debugging where generating a migration file yourself each time is cumbersome, or perhaps for local deployment cases where you're trying to spin up an internal tool locally and trying to treat postgres closer to something like sqlite.

@piercefreeman piercefreeman merged commit cc79021 into main Mar 8, 2026
4 checks passed
@piercefreeman piercefreeman deleted the feature/magic-migrations branch March 8, 2026 20:50
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.

1 participant