[ARVADOS] updated: 0cf2f356035164cd92e4a5722f0dd25c7502164e
git at public.curoverse.com
git at public.curoverse.com
Thu Sep 11 19:21:00 EDT 2014
Summary of changes:
services/api/app/models/job.rb | 1 +
services/api/app/models/pipeline_instance.rb | 1 +
..._add_description_to_pipeline_instances_and_jobs.rb | 11 +++++++++++
services/api/db/structure.sql | 19 ++++++++++++++++---
4 files changed, 29 insertions(+), 3 deletions(-)
create mode 100644 services/api/db/migrate/20140911221252_add_description_to_pipeline_instances_and_jobs.rb
via 0cf2f356035164cd92e4a5722f0dd25c7502164e (commit)
from 8012f6cc74ca6e39d6f4bbf097a66eee19f0c4da (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 0cf2f356035164cd92e4a5722f0dd25c7502164e
Author: radhika <radhika at curoverse.com>
Date: Thu Sep 11 19:20:04 2014 -0400
2875: add description to jobs and pipeline_instances.
diff --git a/services/api/app/models/job.rb b/services/api/app/models/job.rb
index 75de61c..32f28e3 100644
--- a/services/api/app/models/job.rb
+++ b/services/api/app/models/job.rb
@@ -40,6 +40,7 @@ class Job < ArvadosModel
t.add :repository
t.add :supplied_script_version
t.add :docker_image_locator
+ t.add :description
end
def assert_finished
diff --git a/services/api/app/models/pipeline_instance.rb b/services/api/app/models/pipeline_instance.rb
index 354c892..9f7a67c 100644
--- a/services/api/app/models/pipeline_instance.rb
+++ b/services/api/app/models/pipeline_instance.rb
@@ -22,6 +22,7 @@ class PipelineInstance < ArvadosModel
t.add :properties
t.add :state
t.add :components_summary
+ t.add :description
end
# Supported states for a pipeline instance
diff --git a/services/api/db/migrate/20140911221252_add_description_to_pipeline_instances_and_jobs.rb b/services/api/db/migrate/20140911221252_add_description_to_pipeline_instances_and_jobs.rb
new file mode 100644
index 0000000..53d3a13
--- /dev/null
+++ b/services/api/db/migrate/20140911221252_add_description_to_pipeline_instances_and_jobs.rb
@@ -0,0 +1,11 @@
+class AddDescriptionToPipelineInstancesAndJobs < ActiveRecord::Migration
+ def up
+ add_column :pipeline_instances, :description, :text, null: true
+ add_column :jobs, :description, :text, null: true
+ end
+
+ def down
+ remove_column :jobs, :description
+ remove_column :pipeline_instances, :description
+ end
+end
diff --git a/services/api/db/structure.sql b/services/api/db/structure.sql
index bd86826..5bb08de 100644
--- a/services/api/db/structure.sql
+++ b/services/api/db/structure.sql
@@ -428,7 +428,8 @@ CREATE TABLE jobs (
repository character varying(255),
supplied_script_version character varying(255),
docker_image_locator character varying(255),
- priority integer DEFAULT 0 NOT NULL
+ priority integer DEFAULT 0 NOT NULL,
+ description text
);
@@ -1981,20 +1982,32 @@ INSERT INTO schema_migrations (version) VALUES ('20140423133559');
INSERT INTO schema_migrations (version) VALUES ('20140501165548');
+INSERT INTO schema_migrations (version) VALUES ('20140509143351');
+
INSERT INTO schema_migrations (version) VALUES ('20140519205916');
INSERT INTO schema_migrations (version) VALUES ('20140527152921');
+INSERT INTO schema_migrations (version) VALUES ('20140528143351');
+
INSERT INTO schema_migrations (version) VALUES ('20140530200539');
INSERT INTO schema_migrations (version) VALUES ('20140601022548');
INSERT INTO schema_migrations (version) VALUES ('20140602143352');
+INSERT INTO schema_migrations (version) VALUES ('20140602143353');
+
INSERT INTO schema_migrations (version) VALUES ('20140607150616');
+INSERT INTO schema_migrations (version) VALUES ('20140610210836');
+
+INSERT INTO schema_migrations (version) VALUES ('20140610210837');
+
INSERT INTO schema_migrations (version) VALUES ('20140611173003');
+INSERT INTO schema_migrations (version) VALUES ('20140613210837');
+
INSERT INTO schema_migrations (version) VALUES ('20140627210837');
INSERT INTO schema_migrations (version) VALUES ('20140709172343');
@@ -2003,8 +2016,6 @@ 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');
@@ -2012,3 +2023,5 @@ 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 ('20140911221252');
\ No newline at end of file
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list