debian-mirror-gitlab/db/migrate/20230424194721_add_tofa_application_settings.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
1.5 KiB
Ruby
Raw Normal View History

2023-07-09 08:55:56 +05:30
# frozen_string_literal: true
class AddTofaApplicationSettings < Gitlab::Database::Migration[2.1]
def change
change_table(:application_settings, bulk: true) do |t|
t.column :encrypted_tofa_credentials, :binary
t.column :encrypted_tofa_credentials_iv, :binary
t.column :encrypted_tofa_host, :binary
t.column :encrypted_tofa_host_iv, :binary
t.column :encrypted_tofa_url, :binary
t.column :encrypted_tofa_url_iv, :binary
t.column :encrypted_tofa_response_json_keys, :binary
t.column :encrypted_tofa_response_json_keys_iv, :binary
t.column :encrypted_tofa_request_json_keys, :binary
t.column :encrypted_tofa_request_json_keys_iv, :binary
t.column :encrypted_tofa_request_payload, :binary
t.column :encrypted_tofa_request_payload_iv, :binary
t.column :encrypted_tofa_client_library_class, :binary
t.column :encrypted_tofa_client_library_class_iv, :binary
t.column :encrypted_tofa_client_library_args, :binary
t.column :encrypted_tofa_client_library_args_iv, :binary
t.column :encrypted_tofa_client_library_create_credentials_method, :binary
t.column :encrypted_tofa_client_library_create_credentials_method_iv, :binary
t.column :encrypted_tofa_client_library_fetch_access_token_method, :binary
t.column :encrypted_tofa_client_library_fetch_access_token_method_iv, :binary
t.column :encrypted_tofa_access_token_expires_in, :binary
t.column :encrypted_tofa_access_token_expires_in_iv, :binary
end
end
end