[ARVADOS] updated: 1.1.4-383-g0c45834

Git user git at public.curoverse.com
Fri Jun 8 14:44:51 EDT 2018


Summary of changes:
 services/api/db/migrate/20180608123145_add_properties_to_groups.rb | 7 +++++++
 services/api/db/structure.sql                                      | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

       via  0c458347e92967b5a1e6cce8267939d3ef204663 (commit)
      from  f9347e2f053b645003d102f96a0aee49167baeef (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 0c458347e92967b5a1e6cce8267939d3ef204663
Author: Peter Amstutz <pamstutz at veritasgenetics.com>
Date:   Fri Jun 8 14:44:26 2018 -0400

    13562: Migration needs to update full text search index on groups
    
    Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz at veritasgenetics.com>

diff --git a/services/api/db/migrate/20180608123145_add_properties_to_groups.rb b/services/api/db/migrate/20180608123145_add_properties_to_groups.rb
index a969456..12c6696 100644
--- a/services/api/db/migrate/20180608123145_add_properties_to_groups.rb
+++ b/services/api/db/migrate/20180608123145_add_properties_to_groups.rb
@@ -1,7 +1,14 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
+require './db/migrate/20161213172944_full_text_search_indexes'
+
 class AddPropertiesToGroups < ActiveRecord::Migration
   def up
     add_column :groups, :properties, :jsonb, default: {}
     ActiveRecord::Base.connection.execute("CREATE INDEX group_index_on_properties ON groups USING gin (properties);")
+    FullTextSearchIndexes.new.replace_index('groups')
   end
 
   def down
diff --git a/services/api/db/structure.sql b/services/api/db/structure.sql
index 20ce89c..f5a5f2a 100644
--- a/services/api/db/structure.sql
+++ b/services/api/db/structure.sql
@@ -1666,7 +1666,7 @@ CREATE INDEX group_index_on_properties ON groups USING gin (properties);
 -- Name: groups_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
 --
 
-CREATE INDEX groups_full_text_search_idx ON groups USING gin (to_tsvector('english'::regconfig, (((((((((((((COALESCE(uuid, ''::character varying))::text || ' '::text) || (COALESCE(owner_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_client_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_user_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(name, ''::character varying))::text) || ' '::text) || (COALESCE(description, ''::character varying))::text) || ' '::text) || (COALESCE(group_class, ''::character varying))::text)));
+CREATE INDEX groups_full_text_search_idx ON groups USING gin (to_tsvector('english'::regconfig, (((((((((((((((COALESCE(uuid, ''::character varying))::text || ' '::text) || (COALESCE(owner_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_client_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_user_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(name, ''::character varying))::text) || ' '::text) || (COALESCE(description, ''::character varying))::text) || ' '::text) || (COALESCE(group_class, ''::character varying))::text) || ' '::text) || COALESCE((properties)::text, ''::text))));
 
 
 --

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list