From 183f05d56cf9c7972014f7a7b54d446c82cb1e02 Mon Sep 17 00:00:00 2001 From: Tom Konidas Date: Wed, 6 Nov 2024 23:41:32 -0500 Subject: [PATCH] Add support for int64 app_build_number (#370) --- lib/plexus_web/controllers/api/v1/schemas/rating.ex | 2 +- .../20241106205931_change_app_build_number_to_bigint.exs | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 priv/repo/migrations/20241106205931_change_app_build_number_to_bigint.exs diff --git a/lib/plexus_web/controllers/api/v1/schemas/rating.ex b/lib/plexus_web/controllers/api/v1/schemas/rating.ex index 5ac1bb67..6fcb2e42 100644 --- a/lib/plexus_web/controllers/api/v1/schemas/rating.ex +++ b/lib/plexus_web/controllers/api/v1/schemas/rating.ex @@ -12,7 +12,7 @@ defmodule PlexusWeb.API.V1.Schemas.Rating do android_version: %Schema{type: :string, description: "Android Version"}, app_package: %Schema{type: :string, description: "App Package"}, app_version: %Schema{type: :string, description: "App Version"}, - app_build_number: %Schema{type: :integer, description: "App Build Number"}, + app_build_number: %Schema{type: :integer, format: :int64, description: "App Build Number"}, rom_name: %Schema{type: :string, description: "ROM Name"}, rom_build: %Schema{type: :string, description: "ROM Build"}, installation_source: %Schema{type: :string, description: "Installation Source"}, diff --git a/priv/repo/migrations/20241106205931_change_app_build_number_to_bigint.exs b/priv/repo/migrations/20241106205931_change_app_build_number_to_bigint.exs new file mode 100644 index 00000000..d497c951 --- /dev/null +++ b/priv/repo/migrations/20241106205931_change_app_build_number_to_bigint.exs @@ -0,0 +1,9 @@ +defmodule Plexus.Repo.Migrations.ChangeAppBuildNumberToBigint do + use Ecto.Migration + + def change do + alter table(:ratings) do + modify :app_build_number, :bigint, from: :integer + end + end +end