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
a6f7c67c
Commit
a6f7c67c
authored
Jun 11, 2021
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Index protected pending builds only partially
parent
417d9614
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
db/post_migrate/20210610113229_add_index_to_protected_pending_builds.rb
...e/20210610113229_add_index_to_protected_pending_builds.rb
+2
-2
No files found.
db/post_migrate/20210610113229_add_index_to_protected_pending_builds.rb
View file @
a6f7c67c
...
...
@@ -3,12 +3,12 @@
class
AddIndexToProtectedPendingBuilds
<
ActiveRecord
::
Migration
[
6.1
]
include
Gitlab
::
Database
::
MigrationHelpers
INDEX_NAME
=
'index_ci_pending_builds_
on_protected
'
INDEX_NAME
=
'index_ci_pending_builds_
id_on_protected_partial
'
disable_ddl_transaction!
def
up
add_concurrent_index
:ci_pending_builds
,
:
protected
,
name:
INDEX_NAME
add_concurrent_index
:ci_pending_builds
,
:
id
,
where:
'protected = true'
,
name:
INDEX_NAME
end
def
down
...
...
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