From 14e46deb721bd1f49c2e62b27919d196d808261b Mon Sep 17 00:00:00 2001 From: Fleeym Date: Mon, 21 Sep 2026 22:44:34 +0300 Subject: [PATCH] add 2.209 --- migrations/20260921194331_add_gd_2209.up.sql | 3 +++ src/types/models/mod_gd_version.rs | 19 ++++++++++++------- 2 files changed, 15 insertions(+), 7 deletions(-) create mode 100644 migrations/20260921194331_add_gd_2209.up.sql diff --git a/migrations/20260921194331_add_gd_2209.up.sql b/migrations/20260921194331_add_gd_2209.up.sql new file mode 100644 index 0000000..805c4ae --- /dev/null +++ b/migrations/20260921194331_add_gd_2209.up.sql @@ -0,0 +1,3 @@ +-- Add up migration script here +-- +alter type gd_version add value '2.209'; diff --git a/src/types/models/mod_gd_version.rs b/src/types/models/mod_gd_version.rs index 92f1723..831da28 100644 --- a/src/types/models/mod_gd_version.rs +++ b/src/types/models/mod_gd_version.rs @@ -51,17 +51,16 @@ pub enum GDVersionEnum { #[serde(rename = "2.2082")] #[sqlx(rename = "2.2082")] GD22082, + #[serde(rename = "2.209")] + #[sqlx(rename = "2.209")] + GD2209, } impl GDVersionEnum { /// GD versions that are currently actively supported #[allow(unused)] pub fn latest_supported() -> &'static [GDVersionEnum] { - &[ - GDVersionEnum::All, - GDVersionEnum::GD22081, - GDVersionEnum::GD22082, - ] + &[GDVersionEnum::All, GDVersionEnum::GD2209] } /// GD versions for which we apply auto-migration to S3 storage @@ -72,6 +71,7 @@ impl GDVersionEnum { GDVersionEnum::GD2206, GDVersionEnum::GD22074, GDVersionEnum::GD22081, + GDVersionEnum::GD2209, ] } } @@ -94,6 +94,7 @@ impl FromStr for GDVersionEnum { "2.208" => Ok(GDVersionEnum::GD2208), "2.2081" => Ok(GDVersionEnum::GD22081), "2.2082" => Ok(GDVersionEnum::GD22082), + "2.209" => Ok(GDVersionEnum::GD2209), _ => Err(()), } } @@ -221,7 +222,9 @@ impl DetailedGDVersion { }) } } - if let Some(win) = self.win && json.windows { + if let Some(win) = self.win + && json.windows + { ret.push(ModGDVersionCreate { gd: win, platform: VerPlatform::Win, @@ -241,7 +244,9 @@ impl DetailedGDVersion { }) } } - if let Some(ios) = self.ios && json.ios { + if let Some(ios) = self.ios + && json.ios + { ret.push(ModGDVersionCreate { gd: ios, platform: VerPlatform::Ios,