Move code to the right file

This commit is contained in:
Mubelotix
2025-08-12 16:03:00 +02:00
committed by Louis Dureuil
parent 27d2cd7bd2
commit d08b62db7d
2 changed files with 25 additions and 0 deletions

View File

@ -3,6 +3,7 @@ mod v1_13;
mod v1_14; mod v1_14;
mod v1_15; mod v1_15;
mod v1_16; mod v1_16;
mod v1_17;
mod v1_18; mod v1_18;
use heed::RwTxn; use heed::RwTxn;

View File

@ -0,0 +1,24 @@
use heed::RwTxn;
use super::UpgradeIndex;
use crate::progress::Progress;
use crate::{Index, Result};
#[allow(non_camel_case_types)]
pub(super) struct Latest_V1_16_To_V1_17_0();
impl UpgradeIndex for Latest_V1_16_To_V1_17_0 {
fn upgrade(
&self,
_wtxn: &mut RwTxn,
_index: &Index,
_original: (u32, u32, u32),
_progress: Progress,
) -> Result<bool> {
Ok(false)
}
fn target_version(&self) -> (u32, u32, u32) {
(1, 17, 0)
}
}