From 4ff1b4652cd880c7358555516968e5c9ebe44473 Mon Sep 17 00:00:00 2001 From: "Rodney H. Brown" Date: Thu, 23 Feb 2017 08:55:29 -0500 Subject: [PATCH 1/2] Migration: Add health_state and power_state columns to physical server --- ...216132118_add_health_state_property_to_physical_server.rb | 5 +++++ ...0217184205_add_power_state_property_to_physical_server.rb | 5 +++++ 2 files changed, 10 insertions(+) create mode 100755 db/migrate/20170216132118_add_health_state_property_to_physical_server.rb create mode 100755 db/migrate/20170217184205_add_power_state_property_to_physical_server.rb diff --git a/db/migrate/20170216132118_add_health_state_property_to_physical_server.rb b/db/migrate/20170216132118_add_health_state_property_to_physical_server.rb new file mode 100755 index 00000000000..85fcb5bb08f --- /dev/null +++ b/db/migrate/20170216132118_add_health_state_property_to_physical_server.rb @@ -0,0 +1,5 @@ +class AddHealthStatePropertyToPhysicalServer < ActiveRecord::Migration[5.0] + def change + add_column :physical_servers, :health_state, :string + end +end diff --git a/db/migrate/20170217184205_add_power_state_property_to_physical_server.rb b/db/migrate/20170217184205_add_power_state_property_to_physical_server.rb new file mode 100755 index 00000000000..9c9c2203176 --- /dev/null +++ b/db/migrate/20170217184205_add_power_state_property_to_physical_server.rb @@ -0,0 +1,5 @@ +class AddPowerStatePropertyToPhysicalServer < ActiveRecord::Migration[5.0] + def change + add_column :physical_servers, :power_state, :string + end +end From 686c805555453db79073eb7328e99252a31c14be Mon Sep 17 00:00:00 2001 From: "Rodney H. Brown" Date: Thu, 2 Mar 2017 08:58:54 -0500 Subject: [PATCH 2/2] Updates shema.yml with phys_server health_state, power_state --- db/schema.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db/schema.yml b/db/schema.yml index 2dd275b3cfc..36eaa1d3848 100644 --- a/db/schema.yml +++ b/db/schema.yml @@ -6122,6 +6122,8 @@ physical_servers: - ems_ref - created_at - updated_at +- health_state +- power_state pictures: - id - resource_id