[arvados] created: 2.5.0-52-gb2a40b550

git repository hosting git at public.arvados.org
Fri Jan 27 16:27:29 UTC 2023


        at  b2a40b550fbe5bcf8ae6f05a1448f46d2f4510db (commit)


commit b2a40b550fbe5bcf8ae6f05a1448f46d2f4510db
Author: Tom Clegg <tom at curii.com>
Date:   Fri Jan 27 11:26:59 2023 -0500

    19993: Fix postgresql<12 incompatibility.
    
    Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom at curii.com>

diff --git a/services/api/db/migrate/20221219165512_dedup_permission_links.rb b/services/api/db/migrate/20221219165512_dedup_permission_links.rb
index 6b2d923d8..ec9ea591d 100644
--- a/services/api/db/migrate/20221219165512_dedup_permission_links.rb
+++ b/services/api/db/migrate/20221219165512_dedup_permission_links.rb
@@ -12,8 +12,7 @@ class DedupPermissionLinks < ActiveRecord::Migration[5.2]
          AND link_class = 'permission'
          AND name in ('can_read', 'can_write', 'can_manage')
         GROUP BY (tail_uuid, head_uuid)
-        HAVING COUNT(uuid) > 1
-        FOR UPDATE")
+        HAVING COUNT(uuid) > 1")
       rows.each do |row|
         Rails.logger.debug "DedupPermissionLinks: consolidating #{row['n']} links into #{row['uuid']}"
         link = Link.find_by_uuid(row['uuid'])
@@ -29,8 +28,7 @@ class DedupPermissionLinks < ActiveRecord::Migration[5.2]
          AND link_class = 'permission'
          AND name = 'can_login'
         GROUP BY (tail_uuid, head_uuid, properties)
-        HAVING COUNT(uuid) > 1
-        FOR UPDATE")
+        HAVING COUNT(uuid) > 1")
       rows.each do |row|
         Rails.logger.debug "DedupPermissionLinks: consolidating #{row['n']} links into #{row['uuid']}"
         link = Link.find_by_uuid(row['uuid'])

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list