X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2b39eafad562600f7d7beb83f0f7f241a1c47bfc..0561bd0c3c07257fd58ded6c7cfa5feeae97af57:/services/api/db/migrate/20150423145759_no_filenames_in_collection_search_index.rb diff --git a/services/api/db/migrate/20150423145759_no_filenames_in_collection_search_index.rb b/services/api/db/migrate/20150423145759_no_filenames_in_collection_search_index.rb index 7b52abd012..4e1379e2aa 100644 --- a/services/api/db/migrate/20150423145759_no_filenames_in_collection_search_index.rb +++ b/services/api/db/migrate/20150423145759_no_filenames_in_collection_search_index.rb @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + class NoFilenamesInCollectionSearchIndex < ActiveRecord::Migration def up remove_index :collections, :name => 'collections_search_index' @@ -5,5 +9,7 @@ class NoFilenamesInCollectionSearchIndex < ActiveRecord::Migration end def down + remove_index :collections, :name => 'collections_search_index' + add_index :collections, ["owner_uuid", "modified_by_client_uuid", "modified_by_user_uuid", "portable_data_hash", "uuid", "name", "file_names"], name: 'collections_search_index' end end