projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
7931: Merge branch 'master' into 7931-replicas-by-volume
[arvados.git]
/
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 7b52abd0120b0037adafaf9163623dfb62bc8b7a..4e1379e2aab7f6bfb5c7a7310ffd3db40608f643 100644
(file)
--- 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'
class NoFilenamesInCollectionSearchIndex < ActiveRecord::Migration
def up
remove_index :collections, :name => 'collections_search_index'
@@
-5,5
+9,7
@@
class NoFilenamesInCollectionSearchIndex < ActiveRecord::Migration
end
def down
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
end
end