X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/390af6a13f7c8974329aecc2f23fbfa81f8e298b..1e31815d4a0d094633d4acb4f6265d6b8b6e3246:/services/api/db/structure.sql diff --git a/services/api/db/structure.sql b/services/api/db/structure.sql index 015db6ffb9..7e6bb1dca4 100644 --- a/services/api/db/structure.sql +++ b/services/api/db/structure.sql @@ -1,3 +1,7 @@ +-- Copyright (C) The Arvados Authors. All rights reserved. +-- +-- SPDX-License-Identifier: AGPL-3.0 + -- -- PostgreSQL database dump -- @@ -295,7 +299,8 @@ CREATE TABLE container_requests ( scheduling_parameters text, output_uuid character varying(255), log_uuid character varying(255), - output_name character varying(255) DEFAULT NULL::character varying + output_name character varying(255) DEFAULT NULL::character varying, + output_ttl integer DEFAULT 0 NOT NULL ); @@ -1685,6 +1690,13 @@ CREATE INDEX index_collections_on_owner_uuid ON collections USING btree (owner_u CREATE UNIQUE INDEX index_collections_on_owner_uuid_and_name ON collections USING btree (owner_uuid, name) WHERE (is_trashed = false); +-- +-- Name: index_collections_on_portable_data_hash; Type: INDEX; Schema: public; Owner: -; Tablespace: +-- + +CREATE INDEX index_collections_on_portable_data_hash ON collections USING btree (portable_data_hash); + + -- -- Name: index_collections_on_trash_at; Type: INDEX; Schema: public; Owner: -; Tablespace: -- @@ -1720,6 +1732,13 @@ CREATE UNIQUE INDEX index_commits_on_repository_name_and_sha1 ON commits USING b CREATE INDEX index_container_requests_on_owner_uuid ON container_requests USING btree (owner_uuid); +-- +-- Name: index_container_requests_on_requesting_container_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: +-- + +CREATE INDEX index_container_requests_on_requesting_container_uuid ON container_requests USING btree (requesting_container_uuid); + + -- -- Name: index_container_requests_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: -- @@ -1797,6 +1816,13 @@ CREATE UNIQUE INDEX index_humans_on_uuid ON humans USING btree (uuid); CREATE INDEX index_job_tasks_on_created_at ON job_tasks USING btree (created_at); +-- +-- Name: index_job_tasks_on_created_by_job_task_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: +-- + +CREATE INDEX index_job_tasks_on_created_by_job_task_uuid ON job_tasks USING btree (created_by_job_task_uuid); + + -- -- Name: index_job_tasks_on_job_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: -- @@ -2028,6 +2054,13 @@ CREATE INDEX index_logs_on_event_type ON logs USING btree (event_type); CREATE INDEX index_logs_on_modified_at ON logs USING btree (modified_at); +-- +-- Name: index_logs_on_object_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: +-- + +CREATE INDEX index_logs_on_object_owner_uuid ON logs USING btree (object_owner_uuid); + + -- -- Name: index_logs_on_object_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: -- @@ -2746,3 +2779,15 @@ INSERT INTO schema_migrations (version) VALUES ('20170301225558'); INSERT INTO schema_migrations (version) VALUES ('20170319063406'); +INSERT INTO schema_migrations (version) VALUES ('20170328215436'); + +INSERT INTO schema_migrations (version) VALUES ('20170330012505'); + +INSERT INTO schema_migrations (version) VALUES ('20170419173031'); + +INSERT INTO schema_migrations (version) VALUES ('20170419173712'); + +INSERT INTO schema_migrations (version) VALUES ('20170419175801'); + +INSERT INTO schema_migrations (version) VALUES ('20170628185847'); +