From 248d85a3b1406a428580b5acd69bc6841f8be552 Mon Sep 17 00:00:00 2001 From: Fleeym <61891787+Fleeym@users.noreply.github.com> Date: Sat, 9 Nov 2024 21:13:48 +0200 Subject: [PATCH] feat: add 2.207 --- ...0241109191040_add_2207_to_gd_version.down.sql | 1 + .../20241109191040_add_2207_to_gd_version.up.sql | 6 ++++++ src/types/models/mod_gd_version.rs | 16 ++++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 migrations/20241109191040_add_2207_to_gd_version.down.sql create mode 100644 migrations/20241109191040_add_2207_to_gd_version.up.sql diff --git a/migrations/20241109191040_add_2207_to_gd_version.down.sql b/migrations/20241109191040_add_2207_to_gd_version.down.sql new file mode 100644 index 0000000..d2f607c --- /dev/null +++ b/migrations/20241109191040_add_2207_to_gd_version.down.sql @@ -0,0 +1 @@ +-- Add down migration script here diff --git a/migrations/20241109191040_add_2207_to_gd_version.up.sql b/migrations/20241109191040_add_2207_to_gd_version.up.sql new file mode 100644 index 0000000..3b4279e --- /dev/null +++ b/migrations/20241109191040_add_2207_to_gd_version.up.sql @@ -0,0 +1,6 @@ +-- Add up migration script here + +alter type gd_version add value '2.207'; +alter type gd_version add value '2.2071'; +alter type gd_version add value '2.2072'; +alter type gd_version add value '2.2073'; \ No newline at end of file diff --git a/src/types/models/mod_gd_version.rs b/src/types/models/mod_gd_version.rs index 362d801..5d262e1 100644 --- a/src/types/models/mod_gd_version.rs +++ b/src/types/models/mod_gd_version.rs @@ -29,6 +29,18 @@ pub enum GDVersionEnum { #[serde(rename = "2.206")] #[sqlx(rename = "2.206")] GD2206, + #[serde(rename = "2.207")] + #[sqlx(rename = "2.207")] + GD2207, + #[serde(rename = "2.2071")] + #[sqlx(rename = "2.2071")] + GD22071, + #[serde(rename = "2.2072")] + #[sqlx(rename = "2.2072")] + GD22072, + #[serde(rename = "2.2073")] + #[sqlx(rename = "2.2073")] + GD22073, } impl FromStr for GDVersionEnum { @@ -41,6 +53,10 @@ impl FromStr for GDVersionEnum { "2.204" => Ok(GDVersionEnum::GD2204), "2.205" => Ok(GDVersionEnum::GD2205), "2.206" => Ok(GDVersionEnum::GD2206), + "2.207" => Ok(GDVersionEnum::GD2207), + "2.2071" => Ok(GDVersionEnum::GD22071), + "2.2072" => Ok(GDVersionEnum::GD22072), + "2.2073" => Ok(GDVersionEnum::GD22073), _ => Err(()), } }