Skip to content

Commit

Permalink
feat: add 2.207
Browse files Browse the repository at this point in the history
  • Loading branch information
Fleeym committed Nov 9, 2024
1 parent 8c03f23 commit 248d85a
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions migrations/20241109191040_add_2207_to_gd_version.down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-- Add down migration script here
6 changes: 6 additions & 0 deletions migrations/20241109191040_add_2207_to_gd_version.up.sql
Original file line number Diff line number Diff line change
@@ -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';
16 changes: 16 additions & 0 deletions src/types/models/mod_gd_version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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(()),
}
}
Expand Down

0 comments on commit 248d85a

Please sign in to comment.