Merge branch 'master' into 4523-search-index
[arvados.git] / services / api / db / structure.sql
index 2cf8473527fff35c49974fc66a09b97607ac7262..df3e58fe9a2400ea87730060d0cdbe4a74c71613 100644 (file)
@@ -167,9 +167,10 @@ CREATE TABLE collections (
     uuid character varying(255),
     manifest_text text,
     name character varying(255),
-    description character varying(131072),
+    description character varying(524288),
     properties text,
-    expires_at date
+    expires_at date,
+    file_names character varying(8192)
 );
 
 
@@ -272,7 +273,7 @@ CREATE TABLE groups (
     modified_by_user_uuid character varying(255),
     modified_at timestamp without time zone,
     name character varying(255) NOT NULL,
-    description character varying(131072),
+    description character varying(524288),
     updated_at timestamp without time zone NOT NULL,
     group_class character varying(255)
 );
@@ -431,7 +432,7 @@ CREATE TABLE jobs (
     supplied_script_version character varying(255),
     docker_image_locator character varying(255),
     priority integer DEFAULT 0 NOT NULL,
-    description character varying(131072),
+    description character varying(524288),
     state character varying(255),
     arvados_sdk_version character varying(255)
 );
@@ -685,7 +686,7 @@ CREATE TABLE pipeline_instances (
     properties text,
     state character varying(255),
     components_summary text,
-    description character varying(131072),
+    description character varying(524288),
     started_at timestamp without time zone,
     finished_at timestamp without time zone
 );
@@ -725,7 +726,7 @@ CREATE TABLE pipeline_templates (
     name character varying(255),
     components text,
     updated_at timestamp without time zone NOT NULL,
-    description character varying(131072)
+    description character varying(524288)
 );
 
 
@@ -1310,7 +1311,7 @@ CREATE UNIQUE INDEX collection_owner_uuid_name_unique ON collections USING btree
 -- Name: collections_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
 --
 
-CREATE INDEX collections_search_index ON collections USING btree (owner_uuid, modified_by_client_uuid, modified_by_user_uuid, portable_data_hash, redundancy_confirmed_by_client_uuid, uuid, name, description);
+CREATE INDEX collections_search_index ON collections USING btree (owner_uuid, modified_by_client_uuid, modified_by_user_uuid, portable_data_hash, redundancy_confirmed_by_client_uuid, uuid, name, description, file_names);
 
 
 --
@@ -2311,4 +2312,6 @@ INSERT INTO schema_migrations (version) VALUES ('20141208164553');
 
 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