Skip to content

Commit

Permalink
feat: add gd 2.2074
Browse files Browse the repository at this point in the history
  • Loading branch information
Fleeym committed Nov 12, 2024
1 parent ebef5fc commit 9e9cc29
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions migrations/20241112190527_add_22074_gd.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-- Add up migration script here

alter type gd_version add value '2.2074';
4 changes: 4 additions & 0 deletions src/types/models/mod_gd_version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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(()),
}
}
Expand Down

0 comments on commit 9e9cc29

Please sign in to comment.