1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 class AddCurrentVersionUuidToCollectionSearchIndex < ActiveRecord::Migration[4.2]
6 disable_ddl_transaction!
9 remove_index :collections, :name => 'collections_search_index'
10 add_index :collections, ["owner_uuid", "modified_by_client_uuid", "modified_by_user_uuid", "portable_data_hash", "uuid", "name", "current_version_uuid"], name: 'collections_search_index', algorithm: :concurrently
14 remove_index :collections, :name => 'collections_search_index'
15 add_index :collections, ["owner_uuid", "modified_by_client_uuid", "modified_by_user_uuid", "portable_data_hash", "uuid", "name"], name: 'collections_search_index', algorithm: :concurrently