[ARVADOS] updated: 924b783e07028b17cd5403205361e4715f7a212f

Git user git at public.curoverse.com
Thu Dec 22 14:45:30 EST 2016


Summary of changes:
 services/api/db/migrate/20161213172944_full_text_search_indexes.rb | 1 +
 1 file changed, 1 insertion(+)

       via  924b783e07028b17cd5403205361e4715f7a212f (commit)
      from  603de36ec435145259feea701acbc6a3cc46f115 (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 924b783e07028b17cd5403205361e4715f7a212f
Author: Tom Clegg <tom at curoverse.com>
Date:   Thu Dec 22 14:43:28 2016 -0500

    Ensure column information is up-to-date before creating full text indexes. refs #10028

diff --git a/services/api/db/migrate/20161213172944_full_text_search_indexes.rb b/services/api/db/migrate/20161213172944_full_text_search_indexes.rb
index 4cb4d97..aac3773 100644
--- a/services/api/db/migrate/20161213172944_full_text_search_indexes.rb
+++ b/services/api/db/migrate/20161213172944_full_text_search_indexes.rb
@@ -14,6 +14,7 @@ class FullTextSearchIndexes < ActiveRecord::Migration
   def up
     # remove existing fts indexes and create up to date ones with no leading space
     fts_indexes.each do |t, 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

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list