X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/d71335c6af0e312b451fdc99ecae42362ba4723d..a95f899d7ac84f29b3d019aa410d265bb40833e5:/services/api/db/structure.sql diff --git a/services/api/db/structure.sql b/services/api/db/structure.sql index 7600313126..4bf4a173bd 100644 --- a/services/api/db/structure.sql +++ b/services/api/db/structure.sql @@ -46,7 +46,8 @@ CREATE TABLE api_client_authorizations ( default_owner_uuid character varying(255), scopes text DEFAULT '--- - all -'::text NOT NULL +'::text NOT NULL, + uuid character varying(255) NOT NULL ); @@ -337,7 +338,10 @@ CREATE TABLE containers ( container_image character varying(255), progress double precision, priority integer, - updated_at timestamp without time zone NOT NULL + updated_at timestamp without time zone NOT NULL, + exit_code integer, + auth_uuid character varying(255), + locked_by_uuid character varying(255) ); @@ -534,7 +538,8 @@ CREATE TABLE jobs ( priority integer DEFAULT 0 NOT NULL, description character varying(524288), state character varying(255), - arvados_sdk_version character varying(255) + arvados_sdk_version character varying(255), + components text ); @@ -1413,7 +1418,7 @@ ALTER TABLE ONLY virtual_machines -- Name: api_client_authorizations_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- -CREATE INDEX api_client_authorizations_search_index ON api_client_authorizations USING btree (api_token, created_by_ip_address, last_used_by_ip_address, default_owner_uuid); +CREATE INDEX api_client_authorizations_search_index ON api_client_authorizations USING btree (api_token, created_by_ip_address, last_used_by_ip_address, default_owner_uuid, uuid); -- @@ -1469,7 +1474,7 @@ CREATE INDEX container_requests_search_index ON container_requests USING btree ( -- Name: containers_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- -CREATE INDEX containers_search_index ON containers USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, state, log, cwd, output_path, output, container_image); +CREATE INDEX containers_search_index ON containers USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, state, log, cwd, output_path, output, container_image, auth_uuid, locked_by_uuid); -- @@ -1528,6 +1533,13 @@ CREATE INDEX index_api_client_authorizations_on_expires_at ON api_client_authori CREATE INDEX index_api_client_authorizations_on_user_id ON api_client_authorizations USING btree (user_id); +-- +-- Name: index_api_client_authorizations_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: +-- + +CREATE UNIQUE INDEX index_api_client_authorizations_on_uuid ON api_client_authorizations USING btree (uuid); + + -- -- Name: index_api_clients_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace: -- @@ -2565,4 +2577,16 @@ INSERT INTO schema_migrations (version) VALUES ('20150526180251'); INSERT INTO schema_migrations (version) VALUES ('20151202151426'); -INSERT INTO schema_migrations (version) VALUES ('20151215134304'); \ No newline at end of file +INSERT INTO schema_migrations (version) VALUES ('20151215134304'); + +INSERT INTO schema_migrations (version) VALUES ('20151229214707'); + +INSERT INTO schema_migrations (version) VALUES ('20160208210629'); + +INSERT INTO schema_migrations (version) VALUES ('20160209155729'); + +INSERT INTO schema_migrations (version) VALUES ('20160324144017'); + +INSERT INTO schema_migrations (version) VALUES ('20160506175108'); + +INSERT INTO schema_migrations (version) VALUES ('20160509143250'); \ No newline at end of file