X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/7dad4d2b1baa96c31a1d1fcc50c9a94263d0fe41..2e26522a30b1bb866be81b1013e3329b4d21ed6e:/services/api/db/structure.sql diff --git a/services/api/db/structure.sql b/services/api/db/structure.sql index b788749f9d..e062d43e4b 100644 --- a/services/api/db/structure.sql +++ b/services/api/db/structure.sql @@ -2,20 +2,11 @@ -- -- SPDX-License-Identifier: AGPL-3.0 --- --- PostgreSQL database dump --- - --- Dumped from database version 9.6.4 --- Dumped by pg_dump version 9.6.4 - SET statement_timeout = 0; -SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; -SET row_security = off; -- -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: - @@ -879,6 +870,34 @@ CREATE SEQUENCE nodes_id_seq ALTER SEQUENCE nodes_id_seq OWNED BY nodes.id; +-- +-- Name: permission_refresh_lock; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE permission_refresh_lock ( + id integer NOT NULL +); + + +-- +-- Name: permission_refresh_lock_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE permission_refresh_lock_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +-- +-- Name: permission_refresh_lock_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE permission_refresh_lock_id_seq OWNED BY permission_refresh_lock.id; + + -- -- Name: pipeline_instances; Type: TABLE; Schema: public; Owner: - -- @@ -1292,6 +1311,13 @@ ALTER TABLE ONLY logs ALTER COLUMN id SET DEFAULT nextval('logs_id_seq'::regclas ALTER TABLE ONLY nodes ALTER COLUMN id SET DEFAULT nextval('nodes_id_seq'::regclass); +-- +-- Name: permission_refresh_lock id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY permission_refresh_lock ALTER COLUMN id SET DEFAULT nextval('permission_refresh_lock_id_seq'::regclass); + + -- -- Name: pipeline_instances id; Type: DEFAULT; Schema: public; Owner: - -- @@ -1484,6 +1510,14 @@ ALTER TABLE ONLY nodes ADD CONSTRAINT nodes_pkey PRIMARY KEY (id); +-- +-- Name: permission_refresh_lock permission_refresh_lock_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY permission_refresh_lock + ADD CONSTRAINT permission_refresh_lock_pkey PRIMARY KEY (id); + + -- -- Name: pipeline_instances pipeline_instances_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- @@ -1793,6 +1827,13 @@ CREATE UNIQUE INDEX index_commit_ancestors_on_descendant_and_ancestor ON commit_ CREATE UNIQUE INDEX index_commits_on_repository_name_and_sha1 ON commits USING btree (repository_name, sha1); +-- +-- Name: index_container_requests_on_container_uuid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_container_requests_on_container_uuid ON container_requests USING btree (container_uuid); + + -- -- Name: index_container_requests_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: - -- @@ -1821,6 +1862,13 @@ CREATE INDEX index_container_requests_on_requesting_container_uuid ON container_ CREATE UNIQUE INDEX index_container_requests_on_uuid ON container_requests USING btree (uuid); +-- +-- Name: index_containers_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_containers_on_modified_at_uuid ON containers USING btree (modified_at DESC, uuid); + + -- -- Name: index_containers_on_owner_uuid; Type: INDEX; Schema: public; Owner: - -- @@ -2178,6 +2226,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_modified_at_uuid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_logs_on_modified_at_uuid ON logs USING btree (modified_at DESC, uuid); + + -- -- Name: index_logs_on_object_owner_uuid; Type: INDEX; Schema: public; Owner: - -- @@ -2975,3 +3030,5 @@ INSERT INTO schema_migrations (version) VALUES ('20170824202826'); INSERT INTO schema_migrations (version) VALUES ('20170906224040'); +INSERT INTO schema_migrations (version) VALUES ('20171027183824'); +