Merge branch '15296-cwl-cancel-procs' closes #15296
[arvados.git] / services / api / db / migrate / 20150423145759_no_filenames_in_collection_search_index.rb
index 7b52abd0120b0037adafaf9163623dfb62bc8b7a..1930f1332da09f33767f3cf9b636964e8599e6ec 100644 (file)
@@ -1,9 +1,15 @@
-class NoFilenamesInCollectionSearchIndex < ActiveRecord::Migration
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
+class NoFilenamesInCollectionSearchIndex < ActiveRecord::Migration[4.2]
   def up
     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"], name: 'collections_search_index'
   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