Merge branch 'master' into 4523-full-text-search
[arvados.git] / services / api / db / structure.sql
index df3e58fe9a2400ea87730060d0cdbe4a74c71613..c69dcd530c80ac864aa2fa729ea3fc578afdf774 100644 (file)
@@ -686,9 +686,9 @@ CREATE TABLE pipeline_instances (
     properties text,
     state character varying(255),
     components_summary text,
-    description character varying(524288),
     started_at timestamp without time zone,
-    finished_at timestamp without time zone
+    finished_at timestamp without time zone,
+    description character varying(524288)
 );
 
 
@@ -1307,6 +1307,13 @@ CREATE INDEX authorized_keys_search_index ON authorized_keys USING btree (uuid,
 CREATE UNIQUE INDEX collection_owner_uuid_name_unique ON collections USING btree (owner_uuid, name);
 
 
+--
+-- Name: collections_manifest_full_text_search_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
+--
+
+CREATE INDEX collections_manifest_full_text_search_idx ON collections USING gin (to_tsvector('english'::regconfig, translate(manifest_text, '/.'::text, '  '::text)));
+
+
 --
 -- Name: collections_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
 --
@@ -2035,6 +2042,13 @@ CREATE INDEX logs_search_index ON logs USING btree (uuid, owner_uuid, modified_b
 CREATE INDEX nodes_search_index ON nodes USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, hostname, domain, ip_address, job_uuid);
 
 
+--
+-- Name: pipeline_instances_components_full_text_search_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
+--
+
+CREATE INDEX pipeline_instances_components_full_text_search_idx ON pipeline_instances USING gin (to_tsvector('english'::regconfig, translate(components, '/.'::text, '  '::text)));
+
+
 --
 -- Name: pipeline_instances_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
 --
@@ -2314,4 +2328,6 @@ INSERT INTO schema_migrations (version) VALUES ('20141208174553');
 
 INSERT INTO schema_migrations (version) VALUES ('20141208174653');
 
-INSERT INTO schema_migrations (version) VALUES ('20141208185217');
\ No newline at end of file
+INSERT INTO schema_migrations (version) VALUES ('20141208185217');
+
+INSERT INTO schema_migrations (version) VALUES ('20150116142953');
\ No newline at end of file