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
stamp method to SchemaMigrator that calls mark_applied() without running up()
- Add CLI command with appropriate options
- Similar to Alembic's
stamp command
Summary
Add
om migrate stampcommand to mark migrations as applied without actually running them.Use Cases
Proposed Interface
Implementation Notes
stampmethod toSchemaMigratorthat callsmark_applied()without runningup()stampcommand