1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 class NoFilenamesInCollectionSearchIndex < ActiveRecord::Migration[4.2]
7 remove_index :collections, :name => 'collections_search_index'
8 add_index :collections, ["owner_uuid", "modified_by_client_uuid", "modified_by_user_uuid", "portable_data_hash", "uuid", "name"], name: 'collections_search_index'
12 remove_index :collections, :name => 'collections_search_index'
13 add_index :collections, ["owner_uuid", "modified_by_client_uuid", "modified_by_user_uuid", "portable_data_hash", "uuid", "name", "file_names"], name: 'collections_search_index'