Commit e29f9e3d authored by Adam Hegyi's avatar Adam Hegyi

Merge branch '349549-inconsistent-schema-indexes' into 'master'

Resolve "Inconsistent schema - indexes"

See merge request gitlab-org/gitlab!78256
parents f5316f33 8040ec88
# 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