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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2024-01-17 12:08:04 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2024-01-17 12:08:04 +0300
commitf4cab593243c89a6e22a546d253a546e0d1174af (patch)
tree84e195ef03fa8c4e2e2242d55b3822956f852fe9 /db/post_migrate/20240116131144_remove_application_settings_ai_access_token_column_corrected.rb
parent172e4a12748fd146fdd0e9eca12ade4c51dabda9 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db/post_migrate/20240116131144_remove_application_settings_ai_access_token_column_corrected.rb')
-rw-r--r--db/post_migrate/20240116131144_remove_application_settings_ai_access_token_column_corrected.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/db/post_migrate/20240116131144_remove_application_settings_ai_access_token_column_corrected.rb b/db/post_migrate/20240116131144_remove_application_settings_ai_access_token_column_corrected.rb
new file mode 100644
index 00000000000..25e3f8fa806
--- /dev/null
+++ b/db/post_migrate/20240116131144_remove_application_settings_ai_access_token_column_corrected.rb
@@ -0,0 +1,15 @@
+# frozen_string_literal: true
+
+class RemoveApplicationSettingsAiAccessTokenColumnCorrected < Gitlab::Database::Migration[2.2]
+ milestone '16.9'
+
+ def up
+ remove_column :application_settings, :encrypted_ai_access_token, if_exists: true
+ remove_column :application_settings, :encrypted_ai_access_token_iv, if_exists: true
+ end
+
+ def down
+ add_column :application_settings, :encrypted_ai_access_token, :binary, if_not_exists: true
+ add_column :application_settings, :encrypted_ai_access_token_iv, :binary, if_not_exists: true
+ end
+end