[ARVADOS] updated: 1.3.1-6-g4b4f2356c

Git user git at public.curoverse.com
Mon Apr 22 15:28:57 UTC 2019


Summary of changes:
 .../api/db/migrate/20190422144631_fill_missing_modified_at.rb | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 services/api/db/migrate/20190422144631_fill_missing_modified_at.rb

       via  4b4f2356cc1be1d4f79a20dcd7686acb8376cd64 (commit)
      from  7533ce8c161f3f02ae356b524b332b6740967e89 (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 4b4f2356cc1be1d4f79a20dcd7686acb8376cd64
Author: Tom Clegg <tclegg at veritasgenetics.com>
Date:   Mon Apr 22 11:28:50 2019 -0400

    15112: Fill in missing modified_at values from before #14595.
    
    Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg at veritasgenetics.com>

diff --git a/services/api/db/migrate/20190422144631_fill_missing_modified_at.rb b/services/api/db/migrate/20190422144631_fill_missing_modified_at.rb
new file mode 100644
index 000000000..a83c25a39
--- /dev/null
+++ b/services/api/db/migrate/20190422144631_fill_missing_modified_at.rb
@@ -0,0 +1,11 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
+class FillMissingModifiedAt < ActiveRecord::Migration
+  def up
+    Collection.where('modified_at is null').update_all('modified_at = created_at')
+  end
+  def down
+  end
+end

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list