1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 class BigintId < ActiveRecord::Migration[5.2]
6 disable_ddl_transaction!
8 old_value = query_value('SHOW statement_timeout')
9 execute "SET statement_timeout TO '0'"
11 change_column :api_client_authorizations, :id, :bigint
12 change_column :api_client_authorizations, :api_client_id, :bigint
13 change_column :api_client_authorizations, :user_id, :bigint
14 change_column :api_clients, :id, :bigint
15 change_column :authorized_keys, :id, :bigint
16 change_column :collections, :id, :bigint
17 change_column :container_requests, :id, :bigint
18 change_column :containers, :id, :bigint
19 change_column :groups, :id, :bigint
20 change_column :humans, :id, :bigint
21 change_column :job_tasks, :id, :bigint
22 change_column :jobs, :id, :bigint
23 change_column :keep_disks, :id, :bigint
24 change_column :keep_services, :id, :bigint
25 change_column :links, :id, :bigint
26 change_column :logs, :id, :bigint
27 change_column :nodes, :id, :bigint
28 change_column :users, :id, :bigint
29 change_column :pipeline_instances, :id, :bigint
30 change_column :pipeline_templates, :id, :bigint
31 change_column :repositories, :id, :bigint
32 change_column :specimens, :id, :bigint
33 change_column :traits, :id, :bigint
34 change_column :virtual_machines, :id, :bigint
35 change_column :workflows, :id, :bigint
37 execute "SET statement_timeout TO #{quote(old_value)}"