Skip to content
GitLab
Next
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
GitLab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
GitLab.org
GitLab
Commits
b8130f74
There was an error fetching the commit references. Please try again later.
Commit
b8130f74
authored
6 months ago
by
Luke Duncalfe
🔴
Browse files
Options
Downloads
Patches
Plain Diff
Revert index on web_hook_logs
!151048 (comment 2009355214)
#437188
parent
410e2262
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
db/migrate/20240809044742_remove_web_hook_log_index_on_web_hook_id_and_response_status.rb
+20
-0
20 additions, 0 deletions
..._web_hook_log_index_on_web_hook_id_and_response_status.rb
db/schema_migrations/20240809044742
+1
-0
1 addition, 0 deletions
db/schema_migrations/20240809044742
with
21 additions
and
0 deletions
db/migrate/20240809044742_remove_web_hook_log_index_on_web_hook_id_and_response_status.rb
0 → 100644
+
20
−
0
View file @
b8130f74
# frozen_string_literal: true
class
RemoveWebHookLogIndexOnWebHookIdAndResponseStatus
<
Gitlab
::
Database
::
Migration
[
2.2
]
include
Gitlab
::
Database
::
PartitioningMigrationHelpers
milestone
'17.4'
TABLE_NAME
=
:web_hook_logs
COLUMN_NAMES
=
[
:web_hook_id
,
:response_status
]
INDEX_NAME
=
'web_hook_logs_on_web_hook_id_and_response_status'
# Reverting the index added in https://gitlab.com/gitlab-org/gitlab/-/merge_requests/151048
def
up
unprepare_partitioned_async_index
(
TABLE_NAME
,
COLUMN_NAMES
,
name:
INDEX_NAME
)
end
def
down
prepare_partitioned_async_index
(
TABLE_NAME
,
COLUMN_NAMES
,
name:
INDEX_NAME
)
end
end
This diff is collapsed.
Click to expand it.
db/schema_migrations/20240809044742
0 → 100644
+
1
−
0
View file @
b8130f74
b860e598cc545ea259380cb3f19f999fa478b26575ae28275574ac3c7c6ffddd
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment