Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20230530003634_cleanup_tofa_settings.rb « post_migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0e580a52bfd8760692f5a5bfaad989149ec3a593 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# frozen_string_literal: true

class CleanupTofaSettings < Gitlab::Database::Migration[2.1]
  disable_ddl_transaction!

  def up
    cleanup_concurrent_column_rename :application_settings, :encrypted_tofa_credentials,
      :encrypted_vertex_ai_credentials
    cleanup_concurrent_column_rename :application_settings, :encrypted_tofa_credentials_iv,
      :encrypted_vertex_ai_credentials_iv
    cleanup_concurrent_column_rename :application_settings, :vertex_project,
      :vertex_ai_project
  end

  def down
    undo_cleanup_concurrent_column_rename :application_settings, :encrypted_tofa_credentials,
      :encrypted_vertex_ai_credentials
    undo_cleanup_concurrent_column_rename :application_settings, :encrypted_tofa_credentials_iv,
      :encrypted_vertex_ai_credentials_iv
    undo_cleanup_concurrent_column_rename :application_settings, :vertex_project,
      :vertex_ai_project
  end
end