8018: Add container_count field.
authorPeter Amstutz <peter.amstutz@curoverse.com>
Tue, 27 Sep 2016 14:59:42 +0000 (10:59 -0400)
committerPeter Amstutz <peter.amstutz@curoverse.com>
Tue, 27 Sep 2016 14:59:42 +0000 (10:59 -0400)
services/api/app/models/container_request.rb
services/api/db/structure.sql

index 872b3c56cf5a66380218a6c5a265fe3828d647bc..f2d327ed5877a03109f13932292353cc533a31c9 100644 (file)
@@ -23,6 +23,7 @@ class ContainerRequest < ArvadosModel
 
   api_accessible :user, extend: :common do |t|
     t.add :command
+    t.add :container_count
     t.add :container_count_max
     t.add :container_image
     t.add :container_uuid
index 5f80fb2c707dc1b5a72162b5a16db88508b3a1c1..fa4760d8a0df2ad03781fb37bcdfa58beba2f2ae 100644 (file)
@@ -289,7 +289,8 @@ CREATE TABLE container_requests (
     priority integer,
     expires_at timestamp without time zone,
     filters text,
-    updated_at timestamp without time zone NOT NULL
+    updated_at timestamp without time zone NOT NULL,
+    container_count integer DEFAULT 0
 );
 
 
@@ -2688,4 +2689,6 @@ INSERT INTO schema_migrations (version) VALUES ('20160819195725');
 
 INSERT INTO schema_migrations (version) VALUES ('20160901210110');
 
-INSERT INTO schema_migrations (version) VALUES ('20160909181442');
\ No newline at end of file
+INSERT INTO schema_migrations (version) VALUES ('20160909181442');
+
+INSERT INTO schema_migrations (version) VALUES ('20160926194129');
\ No newline at end of file