mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-09-06 04:36:32 +00:00
Move code to the right file
This commit is contained in:
@ -3,16 +3,17 @@ mod v1_13;
|
|||||||
mod v1_14;
|
mod v1_14;
|
||||||
mod v1_15;
|
mod v1_15;
|
||||||
mod v1_16;
|
mod v1_16;
|
||||||
|
mod v1_17;
|
||||||
use heed::RwTxn;
|
use heed::RwTxn;
|
||||||
use v1_12::{V1_12_3_To_V1_13_0, V1_12_To_V1_12_3};
|
use v1_12::{V1_12_3_To_V1_13_0, V1_12_To_V1_12_3};
|
||||||
use v1_13::{V1_13_0_To_V1_13_1, V1_13_1_To_Latest_V1_13};
|
use v1_13::{V1_13_0_To_V1_13_1, V1_13_1_To_Latest_V1_13};
|
||||||
use v1_14::Latest_V1_13_To_Latest_V1_14;
|
use v1_14::Latest_V1_13_To_Latest_V1_14;
|
||||||
use v1_15::Latest_V1_14_To_Latest_V1_15;
|
use v1_15::Latest_V1_14_To_Latest_V1_15;
|
||||||
use v1_16::Latest_V1_16_To_V1_17_0;
|
use v1_16::Latest_V1_15_To_V1_16_0;
|
||||||
|
use v1_17::Latest_V1_16_To_V1_17_0;
|
||||||
|
|
||||||
use crate::constants::{VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH};
|
use crate::constants::{VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH};
|
||||||
use crate::progress::{Progress, VariableNameStep};
|
use crate::progress::{Progress, VariableNameStep};
|
||||||
use crate::update::upgrade::v1_16::Latest_V1_15_To_V1_16_0;
|
|
||||||
use crate::{Index, InternalError, Result};
|
use crate::{Index, InternalError, Result};
|
||||||
|
|
||||||
trait UpgradeIndex {
|
trait UpgradeIndex {
|
||||||
|
@ -46,22 +46,3 @@ impl UpgradeIndex for Latest_V1_15_To_V1_16_0 {
|
|||||||
(1, 16, 0)
|
(1, 16, 0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[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)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
24
crates/milli/src/update/upgrade/v1_17.rs
Normal file
24
crates/milli/src/update/upgrade/v1_17.rs
Normal 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)
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user