17810: Fix S3 signature verification.
[arvados.git] / services / api / db / migrate / 20150423145759_no_filenames_in_collection_search_index.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 class NoFilenamesInCollectionSearchIndex < ActiveRecord::Migration[4.2]
6   def up
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'
9   end
10
11   def down
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'
14   end
15 end