Commit b938c4c6 authored by Mayra Cabrera's avatar Mayra Cabrera

Merge branch 'ab/remove-token-index' into 'master'

Drop full index on ci_builds.token

See merge request gitlab-org/gitlab!65025
parents 3b74e409 e7f43db6
# frozen_string_literal: true
class DropIndexOnCiBuildsForToken < ActiveRecord::Migration[6.1]
include Gitlab::Database::MigrationHelpers
disable_ddl_transaction!
INDEXNAME = :index_ci_builds_on_token
def up
remove_concurrent_index_by_name :ci_builds, INDEXNAME
end
def down
add_concurrent_index :ci_builds, :token, unique: true, name: INDEXNAME
end
end
2ec44dfd0745fd155ab3ab52153688a8969641134a9cc0cc485dd698cc8fd2d1
\ No newline at end of file
...@@ -22889,8 +22889,6 @@ CREATE INDEX index_ci_builds_on_stage_id ON ci_builds USING btree (stage_id); ...@@ -22889,8 +22889,6 @@ CREATE INDEX index_ci_builds_on_stage_id ON ci_builds USING btree (stage_id);
CREATE INDEX index_ci_builds_on_status_and_type_and_runner_id ON ci_builds USING btree (status, type, runner_id); CREATE INDEX index_ci_builds_on_status_and_type_and_runner_id ON ci_builds USING btree (status, type, runner_id);
CREATE UNIQUE INDEX index_ci_builds_on_token ON ci_builds USING btree (token);
CREATE UNIQUE INDEX index_ci_builds_on_token_encrypted ON ci_builds USING btree (token_encrypted) WHERE (token_encrypted IS NOT NULL); CREATE UNIQUE INDEX index_ci_builds_on_token_encrypted ON ci_builds USING btree (token_encrypted) WHERE (token_encrypted IS NOT NULL);
CREATE UNIQUE INDEX index_ci_builds_on_token_partial ON ci_builds USING btree (token) WHERE (token IS NOT NULL); CREATE UNIQUE INDEX index_ci_builds_on_token_partial ON ci_builds USING btree (token) WHERE (token IS NOT NULL);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment