[arvados] created: 2.5.0-167-gcffecc324

git repository hosting git at public.arvados.org
Tue Feb 14 18:34:54 UTC 2023


        at  cffecc32488ab5c7ef44d1d855fb8c0e55d76b1f (commit)


commit cffecc32488ab5c7ef44d1d855fb8c0e55d76b1f
Author: Lucas Di Pentima <lucas.dipentima at curii.com>
Date:   Tue Feb 14 15:34:16 2023 -0300

    20074: Disables statement timeout on rails migration.
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima at curii.com>

diff --git a/services/api/db/migrate/20221230155924_bigint_id.rb b/services/api/db/migrate/20221230155924_bigint_id.rb
index 20791ae01..fdac96d9a 100644
--- a/services/api/db/migrate/20221230155924_bigint_id.rb
+++ b/services/api/db/migrate/20221230155924_bigint_id.rb
@@ -5,6 +5,9 @@
 class BigintId < ActiveRecord::Migration[5.2]
   disable_ddl_transaction!
   def up
+    old_value = query_value('SHOW statement_timeout')
+    execute "SET statement_timeout TO '0s'"
+
     change_column :api_client_authorizations, :id, :bigint
     change_column :api_client_authorizations, :api_client_id, :bigint
     change_column :api_client_authorizations, :user_id, :bigint
@@ -30,6 +33,8 @@ class BigintId < ActiveRecord::Migration[5.2]
     change_column :traits, :id, :bigint
     change_column :virtual_machines, :id, :bigint
     change_column :workflows, :id, :bigint
+
+    execute "SET statement_timeout TO '#{quote(old_value)}s'"
   end
 
   def down

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list