[ARVADOS] created: 1.3.0-594-g19ea27268

Git user git at public.curoverse.com
Fri Mar 22 17:55:23 UTC 2019


        at  19ea2726815a0d74f718339b1e42f76cc4bb463c (commit)


commit 19ea2726815a0d74f718339b1e42f76cc4bb463c
Author: Eric Biagiotti <ebiagiotti at veritasgenetics.com>
Date:   Fri Mar 22 13:55:15 2019 -0400

    14484: Adds migration file for collection file count and size
    
    Arvados-DCO-1.1-Signed-off-by: Eric Biagiotti <ebiagiotti at veritasgenetics.com>

diff --git a/services/api/db/migrate/20190322174136_add_file_info_to_collection.rb b/services/api/db/migrate/20190322174136_add_file_info_to_collection.rb
new file mode 100755
index 000000000..816514e67
--- /dev/null
+++ b/services/api/db/migrate/20190322174136_add_file_info_to_collection.rb
@@ -0,0 +1,10 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
+class AddFileInfoToCollection < ActiveRecord::Migration
+  def change
+    add_column :collections, :file_count, :integer, default: 0, null: false
+    add_column :collections, :file_size_total, :integer, default: 0, null: false
+  end
+end

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list