diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-18 13:50:51 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-18 13:50:51 +0300 |
commit | db384e6b19af03b4c3c82a5760d83a3fd79f7982 (patch) | |
tree | 34beaef37df5f47ccbcf5729d7583aae093cffa0 /db/post_migrate/20230728134722_remove_application_settings_ignored_columns.rb | |
parent | 54fd7b1bad233e3944434da91d257fa7f63c3996 (diff) |
Add latest changes from gitlab-org/gitlab@16-3-stable-eev16.3.0-rc42
Diffstat (limited to 'db/post_migrate/20230728134722_remove_application_settings_ignored_columns.rb')
-rw-r--r-- | db/post_migrate/20230728134722_remove_application_settings_ignored_columns.rb | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/db/post_migrate/20230728134722_remove_application_settings_ignored_columns.rb b/db/post_migrate/20230728134722_remove_application_settings_ignored_columns.rb new file mode 100644 index 00000000000..71bd6ae83eb --- /dev/null +++ b/db/post_migrate/20230728134722_remove_application_settings_ignored_columns.rb @@ -0,0 +1,55 @@ +# frozen_string_literal: true + +class RemoveApplicationSettingsIgnoredColumns < Gitlab::Database::Migration[2.1] + disable_ddl_transaction! + + def up + remove_column :application_settings, :encrypted_tofa_access_token_expires_in, if_exists: true + remove_column :application_settings, :encrypted_tofa_access_token_expires_in_iv, if_exists: true + remove_column :application_settings, :encrypted_tofa_client_library_args, if_exists: true + remove_column :application_settings, :encrypted_tofa_client_library_args_iv, if_exists: true + remove_column :application_settings, :encrypted_tofa_client_library_class, if_exists: true + remove_column :application_settings, :encrypted_tofa_client_library_class_iv, if_exists: true + remove_column :application_settings, :encrypted_tofa_client_library_create_credentials_method, if_exists: true + remove_column :application_settings, :encrypted_tofa_client_library_create_credentials_method_iv, if_exists: true + remove_column :application_settings, :encrypted_tofa_client_library_fetch_access_token_method, if_exists: true + remove_column :application_settings, :encrypted_tofa_client_library_fetch_access_token_method_iv, if_exists: true + remove_column :application_settings, :encrypted_tofa_host, if_exists: true + remove_column :application_settings, :encrypted_tofa_host_iv, if_exists: true + remove_column :application_settings, :encrypted_tofa_request_json_keys, if_exists: true + remove_column :application_settings, :encrypted_tofa_request_json_keys_iv, if_exists: true + remove_column :application_settings, :encrypted_tofa_request_payload, if_exists: true + remove_column :application_settings, :encrypted_tofa_request_payload_iv, if_exists: true + remove_column :application_settings, :encrypted_tofa_response_json_keys, if_exists: true + remove_column :application_settings, :encrypted_tofa_response_json_keys_iv, if_exists: true + remove_column :application_settings, :encrypted_tofa_url, if_exists: true + remove_column :application_settings, :encrypted_tofa_url_iv, if_exists: true + end + + def down + add_column :application_settings, :encrypted_tofa_host, :binary, if_not_exists: true + add_column :application_settings, :encrypted_tofa_host_iv, :binary, if_not_exists: true + add_column :application_settings, :encrypted_tofa_url, :binary, if_not_exists: true + add_column :application_settings, :encrypted_tofa_url_iv, :binary, if_not_exists: true + add_column :application_settings, :encrypted_tofa_response_json_keys, :binary, if_not_exists: true + add_column :application_settings, :encrypted_tofa_response_json_keys_iv, :binary, if_not_exists: true + add_column :application_settings, :encrypted_tofa_request_json_keys, :binary, if_not_exists: true + add_column :application_settings, :encrypted_tofa_request_json_keys_iv, :binary, if_not_exists: true + add_column :application_settings, :encrypted_tofa_request_payload, :binary, if_not_exists: true + add_column :application_settings, :encrypted_tofa_request_payload_iv, :binary, if_not_exists: true + add_column :application_settings, :encrypted_tofa_client_library_class, :binary, if_not_exists: true + add_column :application_settings, :encrypted_tofa_client_library_class_iv, :binary, if_not_exists: true + add_column :application_settings, :encrypted_tofa_client_library_args, :binary, if_not_exists: true + add_column :application_settings, :encrypted_tofa_client_library_args_iv, :binary, if_not_exists: true + add_column :application_settings, :encrypted_tofa_client_library_create_credentials_method, :binary, + if_not_exists: true + add_column :application_settings, :encrypted_tofa_client_library_create_credentials_method_iv, :binary, + if_not_exists: true + add_column :application_settings, :encrypted_tofa_client_library_fetch_access_token_method, :binary, + if_not_exists: true + add_column :application_settings, :encrypted_tofa_client_library_fetch_access_token_method_iv, :binary, + if_not_exists: true + add_column :application_settings, :encrypted_tofa_access_token_expires_in, :binary, if_not_exists: true + add_column :application_settings, :encrypted_tofa_access_token_expires_in_iv, :binary, if_not_exists: true + end +end |