Skip to content
代码片段 群组 项目
未验证 提交 f79ceb20 编辑于 作者: Rodrigo Tomonari's avatar Rodrigo Tomonari 提交者: GitLab
浏览文件

Merge branch 'remove-duplicated-indexes-board_user_preferences' into 'master'

Remove duplicated index from board_user_preferences

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/155508



Merged-by: default avatarRodrigo Tomonari <rtomonari@gitlab.com>
Approved-by: default avatarHeinrich Lee Yu <heinrich@gitlab.com>
Approved-by: default avatarJon Jenkins <jjenkins@gitlab.com>
Approved-by: default avatarRodrigo Tomonari <rtomonari@gitlab.com>
Co-authored-by: default avatarLeonardo Rosa <ldarosa@gitlab.com>
No related branches found
No related tags found
无相关合并请求
# frozen_string_literal: true
class DropIndexBoardUserPreferencesOnUserId < Gitlab::Database::Migration[2.2]
milestone '17.1'
disable_ddl_transaction!
TABLE_NAME = :board_user_preferences
INDEX_NAME = :index_board_user_preferences_on_user_id
COLUMN_NAMES = [:user_id]
def up
remove_concurrent_index_by_name(TABLE_NAME, INDEX_NAME)
end
def down
add_concurrent_index(TABLE_NAME, COLUMN_NAMES, name: INDEX_NAME)
end
end
80db15730765286f501843b6943e89eda3c1126a6d3c08a0689adb00a3313ec7
\ No newline at end of file
......@@ -25324,8 +25324,6 @@ CREATE UNIQUE INDEX index_board_project_recent_visits_on_user_project_and_board
 
CREATE INDEX index_board_user_preferences_on_board_id ON board_user_preferences USING btree (board_id);
 
CREATE INDEX index_board_user_preferences_on_user_id ON board_user_preferences USING btree (user_id);
CREATE UNIQUE INDEX index_board_user_preferences_on_user_id_and_board_id ON board_user_preferences USING btree (user_id, board_id);
 
CREATE INDEX index_boards_epic_board_labels_on_epic_board_id ON boards_epic_board_labels USING btree (epic_board_id);
---
board_user_preferences:
index_board_user_preferences_on_user_id_and_board_id:
- index_board_user_preferences_on_user_id
boards_epic_board_recent_visits:
index_epic_board_recent_visits_on_user_group_and_board:
- index_boards_epic_board_recent_visits_on_user_id
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册