From b68fd0f5ee9370018f40a40f36083e10aa9c4956 Mon Sep 17 00:00:00 2001 From: Nate Shoemaker Date: Thu, 21 Nov 2024 15:08:57 -0800 Subject: [PATCH] Save removing deployment.recalculation_type for later --- lib/nerves_hub/deployments/deployment.ex | 5 ++++- ...41120211102_remove_deployments_recalculation_type.exs | 9 --------- 2 files changed, 4 insertions(+), 10 deletions(-) delete mode 100644 priv/repo/migrations/20241120211102_remove_deployments_recalculation_type.exs diff --git a/lib/nerves_hub/deployments/deployment.ex b/lib/nerves_hub/deployments/deployment.ex index 2c8304ebe..5f888967a 100644 --- a/lib/nerves_hub/deployments/deployment.ex +++ b/lib/nerves_hub/deployments/deployment.ex @@ -38,7 +38,8 @@ defmodule NervesHub.Deployments.Deployment do :penalty_timeout_minutes, :connecting_code, :total_updating_devices, - :current_updated_devices + :current_updated_devices, + :recalculation_type ] schema "deployments" do @@ -65,6 +66,8 @@ defmodule NervesHub.Deployments.Deployment do field(:total_updating_devices, :integer, default: 0) field(:current_updated_devices, :integer, default: 0) field(:inflight_update_expiration_minutes, :integer, default: 60) + # TODO: (nshoes) this column is unused, remove after Managed Deploys is done + field(:recalculation_type, Ecto.Enum, values: [:device, :calculator_queue], default: :device) timestamps() end diff --git a/priv/repo/migrations/20241120211102_remove_deployments_recalculation_type.exs b/priv/repo/migrations/20241120211102_remove_deployments_recalculation_type.exs deleted file mode 100644 index 63c589a5e..000000000 --- a/priv/repo/migrations/20241120211102_remove_deployments_recalculation_type.exs +++ /dev/null @@ -1,9 +0,0 @@ -defmodule NervesHub.Repo.Migrations.RemoveDeploymentsRecalculationType do - use Ecto.Migration - - def change do - alter table(:deployments) do - remove :recalculation_type - end - end -end