From 42e15145fc1bfbb08bf0453216eaafcbbd0eb4d2 Mon Sep 17 00:00:00 2001 From: Tom Konidas Date: Wed, 6 Nov 2024 16:36:14 -0500 Subject: [PATCH] Add support for long app_build_number --- 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 5ac1bb6..6fcb2e4 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 0000000..d497c95 --- /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