Add a NoOp operation in index update

This commit is contained in:
ManyTheFish 2025-05-12 14:19:15 +02:00
parent f349630e78
commit d99419acfb
2 changed files with 29 additions and 2 deletions

View file

@ -28,7 +28,11 @@ pub fn upgrade_index_scheduler(
let current_minor = to.1;
let current_patch = to.2;
let upgrade_functions: &[&dyn UpgradeIndexScheduler] = &[&ToCurrentNoOp {}];
let upgrade_functions: &[&dyn UpgradeIndexScheduler] = &[
// This is the last upgrade function, it will be called when the index is up to date.
// any other upgrade function should be added before this one.
&ToCurrentNoOp {},
];
let start = match from {
(1, 12, _) => 0,