diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2024-01-19 00:08:06 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2024-01-19 00:08:06 +0300 |
commit | af7558b036a53ebb0484e7978694a0b419c38c70 (patch) | |
tree | 198bc423fd5bb7ca04e652f5a0c1d66c7d42d2c4 /db/post_migrate/20221214105307_add_token_encrypted_partition_id_index_to_ci_build.rb | |
parent | 055b4c04d5cef7029625c08619df4f3bcdccc6c2 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db/post_migrate/20221214105307_add_token_encrypted_partition_id_index_to_ci_build.rb')
-rw-r--r-- | db/post_migrate/20221214105307_add_token_encrypted_partition_id_index_to_ci_build.rb | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/db/post_migrate/20221214105307_add_token_encrypted_partition_id_index_to_ci_build.rb b/db/post_migrate/20221214105307_add_token_encrypted_partition_id_index_to_ci_build.rb deleted file mode 100644 index 4c64e9b0e70..00000000000 --- a/db/post_migrate/20221214105307_add_token_encrypted_partition_id_index_to_ci_build.rb +++ /dev/null @@ -1,23 +0,0 @@ -# frozen_string_literal: true - -class AddTokenEncryptedPartitionIdIndexToCiBuild < Gitlab::Database::Migration[2.1] - disable_ddl_transaction! - - TABLE_NAME = :ci_builds - INDEX_NAME = :unique_ci_builds_token_encrypted_and_partition_id - COLUMNS = %i[token_encrypted partition_id].freeze - - def up - prepare_async_index( - TABLE_NAME, - COLUMNS, - where: 'token_encrypted IS NOT NULL', - unique: true, - name: INDEX_NAME - ) - end - - def down - unprepare_async_index(TABLE_NAME, COLUMNS, name: INDEX_NAME) - end -end |