[ARVADOS] updated: 840592d4a4e02072c982aeaeab5b38daecfcd840
git at public.curoverse.com
git at public.curoverse.com
Mon Jan 5 20:26:01 EST 2015
Summary of changes:
services/api/db/migrate/20141208174653_collection_file_names.rb | 5 +++++
services/api/db/migrate/20141208185217_search_index.rb | 2 +-
services/api/db/structure.sql | 7 +++++--
3 files changed, 11 insertions(+), 3 deletions(-)
create mode 100644 services/api/db/migrate/20141208174653_collection_file_names.rb
via 840592d4a4e02072c982aeaeab5b38daecfcd840 (commit)
from 942cee2087227f066286e77985a3a7af21fd47a1 (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 840592d4a4e02072c982aeaeab5b38daecfcd840
Author: Radhika Chippada <radhika at curoverse.com>
Date: Mon Jan 5 20:25:33 2015 -0500
4523: add file_names searchable column to collections data model.
diff --git a/services/api/db/migrate/20141208174653_collection_file_names.rb b/services/api/db/migrate/20141208174653_collection_file_names.rb
new file mode 100644
index 0000000..8b182e9
--- /dev/null
+++ b/services/api/db/migrate/20141208174653_collection_file_names.rb
@@ -0,0 +1,5 @@
+class CollectionFileNames < ActiveRecord::Migration
+ def change
+ add_column :collections, :file_names, :string, :limit => 2**16
+ end
+end
diff --git a/services/api/db/migrate/20141208185217_search_index.rb b/services/api/db/migrate/20141208185217_search_index.rb
index 9d2616a..c415bcc 100644
--- a/services/api/db/migrate/20141208185217_search_index.rb
+++ b/services/api/db/migrate/20141208185217_search_index.rb
@@ -4,7 +4,7 @@ class SearchIndex < ActiveRecord::Migration
"api_client_authorizations" => ["api_token", "created_by_ip_address", "last_used_by_ip_address", "default_owner_uuid"],
"api_clients" => ["uuid", "owner_uuid", "modified_by_client_uuid", "modified_by_user_uuid", "name", "url_prefix"],
"authorized_keys" => ["uuid", "owner_uuid", "modified_by_client_uuid", "modified_by_user_uuid", "name", "key_type", "authorized_user_uuid"],
- "collections" => ["owner_uuid", "modified_by_client_uuid", "modified_by_user_uuid", "portable_data_hash", "redundancy_confirmed_by_client_uuid", "uuid", "name", "description"],
+ "collections" => ["owner_uuid", "modified_by_client_uuid", "modified_by_user_uuid", "portable_data_hash", "redundancy_confirmed_by_client_uuid", "uuid", "name", "description", "file_names"],
"groups" => ["uuid", "owner_uuid", "modified_by_client_uuid", "modified_by_user_uuid", "name", "description", "group_class"],
"humans" => ["uuid", "owner_uuid", "modified_by_client_uuid", "modified_by_user_uuid"],
"job_tasks" => ["uuid", "owner_uuid", "modified_by_client_uuid", "modified_by_user_uuid", "job_uuid", "created_by_job_task_uuid"],
diff --git a/services/api/db/structure.sql b/services/api/db/structure.sql
index 194c111..1659d90 100644
--- a/services/api/db/structure.sql
+++ b/services/api/db/structure.sql
@@ -169,7 +169,8 @@ CREATE TABLE collections (
name character varying(255),
description character varying(524288),
properties text,
- expires_at date
+ expires_at date,
+ file_names character varying(65536)
);
@@ -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
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list