-
Notifications
You must be signed in to change notification settings - Fork 124
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Summary
Add om migrate stamp command to mark migrations as applied without actually running them.
Use Cases
- Importing existing schema: When adopting Redis OM on an existing database where indexes already exist
- Manual migrations: When you've manually applied schema changes and need to update tracking
- CI/CD workflows: Mark specific migration states for testing or deployment
Proposed Interface
# Mark all pending migrations as applied
om migrate stamp --all
# Mark specific migration as applied
om migrate stamp <migration_id>
# Mark up to a specific migration
om migrate stamp --target <migration_id>Implementation Notes
- Add
stampmethod toSchemaMigratorthat callsmark_applied()without runningup() - Add CLI command with appropriate options
- Similar to Alembic's
stampcommand
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request