From e302ab1f3d28e6e702368ead38007eef4b3dd036 Mon Sep 17 00:00:00 2001 From: asonix Date: Mon, 28 Aug 2023 13:40:19 -0500 Subject: [PATCH] Migrate not-found alias --- src/repo/migrate.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/repo/migrate.rs b/src/repo/migrate.rs index 27f4187..0931ebd 100644 --- a/src/repo/migrate.rs +++ b/src/repo/migrate.rs @@ -136,6 +136,12 @@ pub(crate) async fn migrate_04( .await?; } + if let Some(generator_state) = old_repo.get(crate::NOT_FOUND_KEY).await? { + new_repo + .set(crate::NOT_FOUND_KEY, generator_state.to_vec().into()) + .await?; + } + tracing::warn!("Migration complete"); Ok(())