Commit 8040ec88 authored by dfrazao-gitlab's avatar dfrazao-gitlab Committed by Adam Hegyi

Inconsistent schema - index

Add index_on_projects_path index back

Changelog: fixed

Relates to https://gitlab.com/gitlab-org/gitlab/-/issues/349549
parent 7b7d26c5
# frozen_string_literal: true
class AddIndexOnProjectsPath < Gitlab::Database::Migration[1.0]
disable_ddl_transaction!
TABLE = :projects
INDEX_NAME = 'index_on_projects_path'
COLUMN = :path
def up
add_concurrent_index TABLE, COLUMN, name: INDEX_NAME
end
def down
remove_concurrent_index TABLE, COLUMN, name: INDEX_NAME
end
end
c9c7e8ff40fd3863095bb927f1aea27fecd5ca77dfc284a7673310e3501476c8
\ No newline at end of file
......@@ -26859,6 +26859,8 @@ CREATE UNIQUE INDEX index_on_project_id_escalation_policy_name_unique ON inciden
CREATE INDEX index_on_projects_lower_path ON projects USING btree (lower((path)::text));
CREATE INDEX index_on_projects_path ON projects USING btree (path);
CREATE INDEX index_on_routes_lower_path ON routes USING btree (lower((path)::text));
CREATE INDEX index_on_users_lower_email ON users USING btree (lower((email)::text));
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