Skip to content

Commit

Permalink
CustomAtribute index without unique_name
Browse files Browse the repository at this point in the history
CustomAtribute index without unique_name, which is used only
under OpenStack
  • Loading branch information
Ladas committed May 10, 2018
1 parent d4d9d96 commit 5edeb5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def cleanup_duplicate_data_delete_all(model, unique_index_columns)
ContainerServicePortConfig => %i(container_service_id name),
ContainerTemplateParameter => %i(container_template_id name),
ContainerVolume => %i(parent_id parent_type ems_ref name),
CustomAttribute => %i(resource_id resource_type name unique_name section source),
CustomAttribute => %i(resource_id resource_type name section source),
Hardware => %i(vm_or_template_id host_id computer_system_id),
OperatingSystem => %i(vm_or_template_id host_id computer_system_id),
}.freeze
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ def change
:unique => true,
:name => "index_container_volumes_unique_multi_column"
add_index :custom_attributes,
%i(resource_id resource_type name unique_name section source),
%i(resource_id resource_type name section source),
:unique => true,
:name => "index_custom_attributes_parameters_unique_multi_column"
:name => "index_custom_attributes_parameters_unique_without_unique_name"

remove_index :hardwares, :vm_or_template_id
add_index :hardwares,
Expand Down

0 comments on commit 5edeb5e

Please sign in to comment.