Implement first-class migration versioning system#9
Merged
Conversation
Add time-based versioning using 5-char base36 format (DDDMM) where DDD is days since 2020-01-01 and MM is 10-minute slot of day. Provides 127 years of runway with 10-minute collision avoidance. The status command now shows current version, target version, and migration progress. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
- Add version format explanation to README - Update MIGRATE_ID example to show base36 format - Fix migration ordering description - Bump version to 0.3.0 for new versioning feature Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds time-based versioning to the migration system using 5-character base36 format (DDDMM). Version encodes days since 2020-01-01 (DDD) and 10-minute slot of day (MM), providing 127 years of runway with automatic collision avoidance.
The
migrate statuscommand now displays current version, target version, and migration progress at a glance.Key Changes
src/version.rsmodule with base36 encoding/decoding and version generationNNN-name.shtoXXXXX-name.sh(5-char base36)Version: 1f72f -> 1f74a (3 pending)Test Plan
cargo build- compiles successfullycargo nextest run- all 39 tests passcargo clippy- no warningsmigrate create- generates correct version formatmigrate status- shows version summary correctly🤖 Generated with Claude Code