From 9e9cc29eb49e74eb56c903b4a84d68c1162339d0 Mon Sep 17 00:00:00 2001 From: Fleeym <61891787+Fleeym@users.noreply.github.com> Date: Tue, 12 Nov 2024 21:06:47 +0200 Subject: [PATCH] feat: add gd 2.2074 --- migrations/20241112190527_add_22074_gd.up.sql | 3 +++ src/types/models/mod_gd_version.rs | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 migrations/20241112190527_add_22074_gd.up.sql diff --git a/migrations/20241112190527_add_22074_gd.up.sql b/migrations/20241112190527_add_22074_gd.up.sql new file mode 100644 index 0000000..be48303 --- /dev/null +++ b/migrations/20241112190527_add_22074_gd.up.sql @@ -0,0 +1,3 @@ +-- Add up migration script here + +alter type gd_version add value '2.2074'; diff --git a/src/types/models/mod_gd_version.rs b/src/types/models/mod_gd_version.rs index 5d262e1..5577bcf 100644 --- a/src/types/models/mod_gd_version.rs +++ b/src/types/models/mod_gd_version.rs @@ -41,6 +41,9 @@ pub enum GDVersionEnum { #[serde(rename = "2.2073")] #[sqlx(rename = "2.2073")] GD22073, + #[serde(rename = "2.2074")] + #[sqlx(rename = "2.2074")] + GD22074, } impl FromStr for GDVersionEnum { @@ -57,6 +60,7 @@ impl FromStr for GDVersionEnum { "2.2071" => Ok(GDVersionEnum::GD22071), "2.2072" => Ok(GDVersionEnum::GD22072), "2.2073" => Ok(GDVersionEnum::GD22073), + "2.2074" => Ok(GDVersionEnum::GD22074), _ => Err(()), } }