[arvados] updated: 2.5.0-169-ge10646b6c
git repository hosting
git at public.arvados.org
Wed Feb 15 14:43:19 UTC 2023
Summary of changes:
services/api/db/migrate/20221230155924_bigint_id.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
via e10646b6cd9e178c284f14658d3a55149582db3b (commit)
from e9928bf0228070a287c086eb91cf1b278bded2db (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 e10646b6cd9e178c284f14658d3a55149582db3b
Author: Lucas Di Pentima <lucas.dipentima at curii.com>
Date: Wed Feb 15 11:42:23 2023 -0300
Fixes statement_timeout unit handling on int->bigint migration. Refs #20074
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 fdac96d9a..932cb025d 100644
--- a/services/api/db/migrate/20221230155924_bigint_id.rb
+++ b/services/api/db/migrate/20221230155924_bigint_id.rb
@@ -6,7 +6,7 @@ class BigintId < ActiveRecord::Migration[5.2]
disable_ddl_transaction!
def up
old_value = query_value('SHOW statement_timeout')
- execute "SET statement_timeout TO '0s'"
+ execute "SET statement_timeout TO '0'"
change_column :api_client_authorizations, :id, :bigint
change_column :api_client_authorizations, :api_client_id, :bigint
@@ -34,7 +34,7 @@ class BigintId < ActiveRecord::Migration[5.2]
change_column :virtual_machines, :id, :bigint
change_column :workflows, :id, :bigint
- execute "SET statement_timeout TO '#{quote(old_value)}s'"
+ execute "SET statement_timeout TO #{quote(old_value)}"
end
def down
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list