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
3121dc37
Commit
3121dc37
authored
Jan 29, 2020
by
nicolasdular
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change broadcast message index
parent
ae5d83de
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
2 deletions
+26
-2
changelogs/unreleased/nicolasdular-change-broadcast-index.yml
...gelogs/unreleased/nicolasdular-change-broadcast-index.yml
+5
-0
db/migrate/20200204131054_change_broadcast_message_index.rb
db/migrate/20200204131054_change_broadcast_message_index.rb
+19
-0
db/schema.rb
db/schema.rb
+2
-2
No files found.
changelogs/unreleased/nicolasdular-change-broadcast-index.yml
0 → 100644
View file @
3121dc37
---
title
:
Change broadcast message index
merge_request
:
23986
author
:
type
:
performance
db/migrate/20200204131054_change_broadcast_message_index.rb
0 → 100644
View file @
3121dc37
# frozen_string_literal: true
class
ChangeBroadcastMessageIndex
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
add_concurrent_index
:broadcast_messages
,
%i(ends_at broadcast_type id)
,
name:
'index_broadcast_message_on_ends_at_and_broadcast_type_and_id'
remove_concurrent_index_by_name
:broadcast_messages
,
:index_broadcast_messages_on_starts_at_and_ends_at_and_id
end
def
down
add_concurrent_index
:broadcast_messages
,
%i(starts_at ends_at id)
,
name:
'index_broadcast_messages_on_starts_at_and_ends_at_and_id'
remove_concurrent_index_by_name
:broadcast_messages
,
:index_broadcast_message_on_ends_at_and_broadcast_type_and_id
end
end
db/schema.rb
View file @
3121dc37
...
...
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
2020_02_0
3_025821
)
do
ActiveRecord
::
Schema
.
define
(
version:
2020_02_0
4_131054
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"pg_trgm"
...
...
@@ -564,7 +564,7 @@ ActiveRecord::Schema.define(version: 2020_02_03_025821) do
t
.
integer
"cached_markdown_version"
t
.
string
"target_path"
,
limit:
255
t
.
integer
"broadcast_type"
,
limit:
2
,
default:
1
,
null:
false
t
.
index
[
"
starts_at"
,
"ends_at"
,
"id"
],
name:
"index_broadcast_messages_on_starts_at_and_ends_at
_and_id"
t
.
index
[
"
ends_at"
,
"broadcast_type"
,
"id"
],
name:
"index_broadcast_message_on_ends_at_and_broadcast_type
_and_id"
end
create_table
"chat_names"
,
id: :serial
,
force: :cascade
do
|
t
|
...
...
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