[ARVADOS] created: bf1f3980c2ec62969b663c1665cb0818e118dfba

git at public.curoverse.com git at public.curoverse.com
Thu Aug 28 10:22:18 EDT 2014


        at  bf1f3980c2ec62969b663c1665cb0818e118dfba (commit)


commit bf1f3980c2ec62969b663c1665cb0818e118dfba
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Thu Aug 28 10:22:10 2014 -0400

    3586: Set job priority column default to '0', add NOT NULL constraint.

diff --git a/services/api/db/migrate/20140828141043_job_priority_fixup.rb b/services/api/db/migrate/20140828141043_job_priority_fixup.rb
new file mode 100644
index 0000000..7f26812
--- /dev/null
+++ b/services/api/db/migrate/20140828141043_job_priority_fixup.rb
@@ -0,0 +1,9 @@
+class JobPriorityFixup < ActiveRecord::Migration
+  def up
+    change_column :jobs, :priority, :string, null: false, default: "0"
+  end
+
+  def down
+    change_column :jobs, :priority, :string, null: true, default: nil
+  end
+end
diff --git a/services/api/db/structure.sql b/services/api/db/structure.sql
index 9bcb3fb..62f81e0 100644
--- a/services/api/db/structure.sql
+++ b/services/api/db/structure.sql
@@ -420,7 +420,7 @@ 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),
+    priority character varying(255) DEFAULT '0'::character varying NOT NULL,
     is_locked_by_uuid character varying(255),
     log character varying(255),
     tasks_summary text,
@@ -2025,4 +2025,6 @@ INSERT INTO schema_migrations (version) VALUES ('20140817035914');
 
 INSERT INTO schema_migrations (version) VALUES ('20140818125735');
 
-INSERT INTO schema_migrations (version) VALUES ('20140826180337');
\ No newline at end of file
+INSERT INTO schema_migrations (version) VALUES ('20140826180337');
+
+INSERT INTO schema_migrations (version) VALUES ('20140828141043');
\ No newline at end of file

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list