X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/1e02903b90dbaf1f0e9fac222f65e3969b5f0352..4ec3bf28abdaccca697563dac1bd126ef6df9975:/services/api/db/structure.sql diff --git a/services/api/db/structure.sql b/services/api/db/structure.sql index aa29a1cbb4..4520e1bc04 100644 --- a/services/api/db/structure.sql +++ b/services/api/db/structure.sql @@ -175,7 +175,9 @@ CREATE TABLE public.collections ( storage_classes_confirmed_at timestamp without time zone, current_version_uuid character varying, version integer DEFAULT 1 NOT NULL, - preserve_version boolean DEFAULT false + preserve_version boolean DEFAULT false, + file_count integer DEFAULT 0 NOT NULL, + file_size_total bigint DEFAULT 0 NOT NULL ); @@ -362,7 +364,8 @@ CREATE TABLE public.containers ( runtime_status jsonb DEFAULT '{}'::jsonb, runtime_user_uuid text, runtime_auth_scopes jsonb, - runtime_token text + runtime_token text, + lock_count integer DEFAULT 0 NOT NULL ); @@ -2278,6 +2281,20 @@ CREATE INDEX index_links_on_modified_at_uuid ON public.links USING btree (modifi CREATE INDEX index_links_on_owner_uuid ON public.links USING btree (owner_uuid); +-- +-- Name: index_links_on_substring_head_uuid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_links_on_substring_head_uuid ON public.links USING btree ("substring"((head_uuid)::text, 7, 5)); + + +-- +-- Name: index_links_on_substring_tail_uuid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_links_on_substring_tail_uuid ON public.links USING btree ("substring"((tail_uuid)::text, 7, 5)); + + -- -- Name: index_links_on_tail_uuid; Type: INDEX; Schema: public; Owner: - -- @@ -3201,3 +3218,9 @@ INSERT INTO schema_migrations (version) VALUES ('20181005192222'); INSERT INTO schema_migrations (version) VALUES ('20181011184200'); +INSERT INTO schema_migrations (version) VALUES ('20181213183234'); + +INSERT INTO schema_migrations (version) VALUES ('20190214214814'); + +INSERT INTO schema_migrations (version) VALUES ('20190322174136'); +