[ARVADOS] updated: 197dd5583c13fb6cddba8d74848df20ba57ed924

Git user git at public.curoverse.com
Thu Feb 16 12:48:52 EST 2017


Summary of changes:
 ...823_no_cr_mounts_and_workflow_def_in_full_text_search_index.rb | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

       via  197dd5583c13fb6cddba8d74848df20ba57ed924 (commit)
      from  1aa3f43606ba5e31633c063851d25b8fab4b93e2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 197dd5583c13fb6cddba8d74848df20ba57ed924
Author: radhika <radhika at curoverse.com>
Date:   Thu Feb 16 12:48:11 2017 -0500

    11103: ensure the index exists before attempting to drop it.

diff --git a/services/api/db/migrate/20170216170823_no_cr_mounts_and_workflow_def_in_full_text_search_index.rb b/services/api/db/migrate/20170216170823_no_cr_mounts_and_workflow_def_in_full_text_search_index.rb
index 3d4a606..cc1b30d 100644
--- a/services/api/db/migrate/20170216170823_no_cr_mounts_and_workflow_def_in_full_text_search_index.rb
+++ b/services/api/db/migrate/20170216170823_no_cr_mounts_and_workflow_def_in_full_text_search_index.rb
@@ -22,7 +22,13 @@ class NoCrMountsAndWorkflowDefInFullTextSearchIndex < ActiveRecord::Migration
 
   def down
     fts_indexes.each do |t, i|
-      remove_index t.to_sym, :name => i
+      t.classify.constantize.reset_column_information
+      ActiveRecord::Base.connection.indexes(t).each do |idx|
+        if idx.name == i
+          remove_index t.to_sym, :name => i
+          break
+        end
+      end
     end
   end
 end

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list