Skip to content

Commit

Permalink
Rename to absent_at
Browse files Browse the repository at this point in the history
  • Loading branch information
arbulu89 committed Aug 23, 2023
1 parent e94da01 commit 76e2526
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ defmodule Trento.ApplicationInstanceReadModel do
field :start_priority, :string
field :host_id, Ecto.UUID, primary_key: true
field :health, Ecto.Enum, values: Health.values()
field :absent, :utc_datetime_usec
field :absent_at, :utc_datetime_usec

has_one :host, HostReadModel,
references: :host_id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ defmodule Trento.DatabaseInstanceReadModel do
field :system_replication, :string, default: ""
field :system_replication_status, :string, default: ""
field :health, Ecto.Enum, values: Health.values()
field :absent, :utc_datetime_usec
field :absent_at, :utc_datetime_usec

has_one :host, HostReadModel,
references: :host_id,
Expand Down
4 changes: 2 additions & 2 deletions lib/trento/application/usecases/sap_systems/sap_systems.ex
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ defmodule Trento.SapSystems do
host_id: host_id,
instance_number: instance_number
) do
%ApplicationInstanceReadModel{absent: nil} ->
%ApplicationInstanceReadModel{absent_at: nil} ->
{:error, :instance_present}

_ ->
Expand Down Expand Up @@ -101,7 +101,7 @@ defmodule Trento.SapSystems do
host_id: host_id,
instance_number: instance_number
) do
%DatabaseInstanceReadModel{absent: nil} ->
%DatabaseInstanceReadModel{absent_at: nil} ->
{:error, :instance_present}

_ ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule Trento.Repo.Migrations.AddAbsentApplicationInstanceReadModel do

def change do
alter table(:application_instances) do
add :absent, :utc_datetime_usec
add :absent_at, :utc_datetime_usec
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule Trento.Repo.Migrations.AddAbsentDatabaseInstanceReadModel do

def change do
alter table(:database_instances) do
add :absent, :utc_datetime_usec
add :absent_at, :utc_datetime_usec
end
end
end

0 comments on commit 76e2526

Please sign in to comment.