Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
768757d3
Commit
768757d3
authored
Jul 27, 2020
by
Arturo Herrero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove index from chat_names and service_id
parent
f2eb8558
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
2 deletions
+23
-2
changelogs/unreleased/204787-remove-cleanup-chat-names.yml
changelogs/unreleased/204787-remove-cleanup-chat-names.yml
+5
-0
db/migrate/20200727082309_remove_index_chat_name_service_id.rb
...grate/20200727082309_remove_index_chat_name_service_id.rb
+17
-0
db/schema_migrations/20200727082309
db/schema_migrations/20200727082309
+1
-0
db/structure.sql
db/structure.sql
+0
-2
No files found.
changelogs/unreleased/204787-remove-cleanup-chat-names.yml
0 → 100644
View file @
768757d3
---
title
:
Remove index from chat_names and service_id
merge_request
:
37054
author
:
type
:
other
db/migrate/20200727082309_remove_index_chat_name_service_id.rb
0 → 100644
View file @
768757d3
# frozen_string_literal: true
class
RemoveIndexChatNameServiceId
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
remove_concurrent_index
:chat_names
,
:service_id
end
def
down
add_concurrent_index
:chat_names
,
:service_id
end
end
db/schema_migrations/20200727082309
0 → 100644
View file @
768757d3
72c7ca9e1284483e653d6d8dc16103f104502d7cd569cb3f7ab75e932807a661
\ No newline at end of file
db/structure.sql
View file @
768757d3
...
...
@@ -18997,8 +18997,6 @@ CREATE INDEX index_boards_on_project_id ON public.boards USING btree (project_id
CREATE
INDEX
index_broadcast_message_on_ends_at_and_broadcast_type_and_id
ON
public
.
broadcast_messages
USING
btree
(
ends_at
,
broadcast_type
,
id
);
CREATE
INDEX
index_chat_names_on_service_id
ON
public
.
chat_names
USING
btree
(
service_id
);
CREATE
UNIQUE
INDEX
index_chat_names_on_service_id_and_team_id_and_chat_id
ON
public
.
chat_names
USING
btree
(
service_id
,
team_id
,
chat_id
);
CREATE
UNIQUE
INDEX
index_chat_names_on_user_id_and_service_id
ON
public
.
chat_names
USING
btree
(
user_id
,
service_id
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment