X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/67c0a6e006f6e181204559dc28af16a8656878b8..c99ba4cdc8f6ff0be1847ffe4ec6f791f6b83396:/services/api/db/structure.sql

diff --git a/services/api/db/structure.sql b/services/api/db/structure.sql
index de293326e6..bd69102992 100644
--- a/services/api/db/structure.sql
+++ b/services/api/db/structure.sql
@@ -169,7 +169,7 @@ CREATE TABLE collections (
     name character varying(255),
     description character varying(255),
     properties text,
-    expire_time date
+    expires_at date
 );
 
 
@@ -353,7 +353,9 @@ CREATE TABLE job_tasks (
     created_at timestamp without time zone NOT NULL,
     updated_at timestamp without time zone NOT NULL,
     created_by_job_task_uuid character varying(255),
-    qsequence bigint
+    qsequence bigint,
+    started_at timestamp without time zone,
+    finished_at timestamp without time zone
 );
 
 
@@ -420,17 +422,15 @@ CREATE TABLE jobs (
     output character varying(255),
     created_at timestamp without time zone NOT NULL,
     updated_at timestamp without time zone NOT NULL,
-    priority character varying(255),
     is_locked_by_uuid character varying(255),
     log character varying(255),
     tasks_summary text,
     runtime_constraints text,
     nondeterministic boolean,
     repository character varying(255),
-    output_is_persistent boolean DEFAULT false NOT NULL,
     supplied_script_version character varying(255),
     docker_image_locator character varying(255),
-    name character varying(255),
+    priority integer DEFAULT 0 NOT NULL,
     description text
 );
 
@@ -681,6 +681,8 @@ CREATE TABLE pipeline_instances (
     properties text,
     state character varying(255),
     components_summary text,
+    started_at timestamp without time zone,
+    finished_at timestamp without time zone,
     description text
 );
 
@@ -1797,13 +1799,6 @@ CREATE INDEX index_virtual_machines_on_hostname ON virtual_machines USING btree
 CREATE UNIQUE INDEX index_virtual_machines_on_uuid ON virtual_machines USING btree (uuid);
 
 
---
--- Name: jobs_owner_uuid_name_unique; Type: INDEX; Schema: public; Owner: -; Tablespace: 
---
-
-CREATE UNIQUE INDEX jobs_owner_uuid_name_unique ON jobs USING btree (owner_uuid, name);
-
-
 --
 -- Name: links_tail_name_unique_if_link_class_name; Type: INDEX; Schema: public; Owner: -; Tablespace: 
 --
@@ -1811,13 +1806,6 @@ CREATE UNIQUE INDEX jobs_owner_uuid_name_unique ON jobs USING btree (owner_uuid,
 CREATE UNIQUE INDEX links_tail_name_unique_if_link_class_name ON links USING btree (tail_uuid, name) WHERE ((link_class)::text = 'name'::text);
 
 
---
--- Name: pipeline_instance_owner_uuid_name_unique; Type: INDEX; Schema: public; Owner: -; Tablespace: 
---
-
-CREATE UNIQUE INDEX pipeline_instance_owner_uuid_name_unique ON pipeline_instances USING btree (owner_uuid, name);
-
-
 --
 -- Name: pipeline_template_owner_uuid_name_unique; Type: INDEX; Schema: public; Owner: -; Tablespace: 
 --
@@ -2020,8 +2008,14 @@ INSERT INTO schema_migrations (version) VALUES ('20140714184006');
 
 INSERT INTO schema_migrations (version) VALUES ('20140811184643');
 
-INSERT INTO schema_migrations (version) VALUES ('20140815171049');
-
 INSERT INTO schema_migrations (version) VALUES ('20140817035914');
 
-INSERT INTO schema_migrations (version) VALUES ('20140818125735');
\ No newline at end of file
+INSERT INTO schema_migrations (version) VALUES ('20140818125735');
+
+INSERT INTO schema_migrations (version) VALUES ('20140826180337');
+
+INSERT INTO schema_migrations (version) VALUES ('20140828141043');
+
+INSERT INTO schema_migrations (version) VALUES ('20140909183946');
+
+INSERT INTO schema_migrations (version) VALUES ('20140911221252');
\ No newline at end of file
