Skip to content

Commit

Permalink
Merge pull request ManageIQ#16 from skovic/network-adapter-db
Browse files Browse the repository at this point in the history
Update database schema for network adapter support
  • Loading branch information
Fryguy committed Jun 23, 2017
2 parents cad19b8 + 0d1ff8a commit e9d356d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions db/migrate/20170524173850_add_guest_device_id_to_firmwares.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class AddGuestDeviceIdToFirmwares < ActiveRecord::Migration[5.0]
def change
add_column :firmwares, :guest_device_id, :bigint
add_index :firmwares, :guest_device_id
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
class AddManufacturerAndFruToGuestDevices < ActiveRecord::Migration[5.0]
def change
add_column :guest_devices, :manufacturer, :string
add_column :guest_devices, :field_replaceable_unit, :string
add_column :guest_devices, :parent_device_id, :bigint
add_index :guest_devices, :parent_device_id
end
end
4 changes: 4 additions & 0 deletions db/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1327,6 +1327,7 @@ firmwares:
- resource_type
- created_at
- updated_at
- guest_device_id
flavors:
- id
- ems_id
Expand Down Expand Up @@ -1437,6 +1438,9 @@ guest_devices:
- auto_detect
- uid_ems
- chap_auth_enabled
- manufacturer
- field_replaceable_unit
- parent_device_id
hardwares:
- id
- config_version
Expand Down

0 comments on commit e9d356d

Please sign in to comment.