diff --git a/migrations/20260921194331_add_gd_2209.up.sql b/migrations/20260921194331_add_gd_2209.up.sql new file mode 100644 index 0000000..ea50a2c --- /dev/null +++ b/migrations/20260921194331_add_gd_2209.up.sql @@ -0,0 +1,4 @@ +-- Add up migration script here +-- +alter type gd_version add value '2.209'; +alter type gd_version add value '2.2091'; diff --git a/src/types/models/mod_gd_version.rs b/src/types/models/mod_gd_version.rs index 92f1723..e320b04 100644 --- a/src/types/models/mod_gd_version.rs +++ b/src/types/models/mod_gd_version.rs @@ -51,17 +51,19 @@ pub enum GDVersionEnum { #[serde(rename = "2.2082")] #[sqlx(rename = "2.2082")] GD22082, + #[serde(rename = "2.209")] + #[sqlx(rename = "2.209")] + GD2209, + #[serde(rename = "2.2091")] + #[sqlx(rename = "2.2091")] + GD22091, } 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::GD22091] } /// GD versions for which we apply auto-migration to S3 storage @@ -72,6 +74,7 @@ impl GDVersionEnum { GDVersionEnum::GD2206, GDVersionEnum::GD22074, GDVersionEnum::GD22081, + GDVersionEnum::GD22091, ] } } @@ -94,6 +97,8 @@ impl FromStr for GDVersionEnum { "2.208" => Ok(GDVersionEnum::GD2208), "2.2081" => Ok(GDVersionEnum::GD22081), "2.2082" => Ok(GDVersionEnum::GD22082), + "2.209" => Ok(GDVersionEnum::GD2209), + "2.2091" => Ok(GDVersionEnum::GD22091), _ => Err(()), } } @@ -221,7 +226,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 +248,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,