From 17ac515f91ff3e168c594fc12f513a21fd5b8a99 Mon Sep 17 00:00:00 2001 From: LeChatP Date: Mon, 9 Sep 2024 23:39:33 +0200 Subject: [PATCH] chore: Update database versioning for 3.0.0 release --- rar-common/src/database/versionning.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/rar-common/src/database/versionning.rs b/rar-common/src/database/versionning.rs index f097462..10e047f 100644 --- a/rar-common/src/database/versionning.rs +++ b/rar-common/src/database/versionning.rs @@ -38,6 +38,11 @@ pub(crate) const JSON_MIGRATIONS: &[Migration] = &[Migration { to: || Version::parse("3.0.0-alpha.5").unwrap(), up: |_, _| Ok(()), down: |_, _| Ok(()), +}, Migration { + from: || Version::parse("3.0.0-alpha.5").unwrap(), + to: || Version::parse("3.0.0").unwrap(), + up: |_, _| Ok(()), + down: |_, _| Ok(()), }]; pub(crate) const SETTINGS_MIGRATIONS: &[Migration] = &[Migration { @@ -45,4 +50,10 @@ pub(crate) const SETTINGS_MIGRATIONS: &[Migration] = &[Migration { to: || Version::parse("3.0.0-alpha.5").unwrap(), up: |_, _| Ok(()), down: |_, _| Ok(()), -}]; +}, + Migration { + from: || Version::parse("3.0.0-alpha.5").unwrap(), + to: || Version::parse("3.0.0").unwrap(), + up: |_, _| Ok(()), + down: |_, _| Ok(()), + }];