File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
crates/store/re_sorbet/src/migrations Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
#![ expect( non_snake_case) ]
2
2
3
3
//! These are the migrations that are introduced for each Sorbet version.
4
+ //!
5
+ //! When you introduce a breaking change, these are the steps:
6
+ //! * Bump [`SorbetSchema::METADATA_VERSION`]
7
+ //! * Add a new `mod vX_Y_Z__to__vX_Y_W`
4
8
5
9
use std:: cmp:: Ordering ;
6
10
@@ -109,7 +113,7 @@ pub fn migrate_record_batch(mut batch: RecordBatch) -> RecordBatch {
109
113
Ok ( batch_version) => match batch_version. cmp ( & SorbetSchema :: METADATA_VERSION ) {
110
114
Ordering :: Equal => {
111
115
// Provide this code path as an early out to avoid unnecessary comparisons.
112
- re_log:: trace!( "Batch version matches Sorbet version. " ) ;
116
+ re_log:: trace!( "Batch version matches Sorbet version ({batch_version}) " ) ;
113
117
batch
114
118
}
115
119
Ordering :: Less => {
@@ -120,7 +124,7 @@ pub fn migrate_record_batch(mut batch: RecordBatch) -> RecordBatch {
120
124
) ;
121
125
batch
122
126
} else {
123
- re_log:: trace !( "Performing migrations…" ) ;
127
+ re_log:: debug_once !( "Performing migrations from {batch_version} …" ) ;
124
128
batch = maybe_apply :: < v0_0_1__to__v0_0_2:: Migration > ( & batch_version, batch) ;
125
129
batch = maybe_apply :: < v0_0_2__to__v0_1_0:: Migration > ( & batch_version, batch) ;
126
130
batch = maybe_apply :: < v0_1_0__to__v0_1_1:: Migration > ( & batch_version, batch) ;
You can’t perform that action at this time.
0 commit comments