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
164fa776
Commit
164fa776
authored
Jan 20, 2021
by
dcouture
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove temp index in oauth_applications table
parent
86395d32
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
2 deletions
+24
-2
changelogs/unreleased/remove-tmp-index-oauth-applications.yml
...gelogs/unreleased/remove-tmp-index-oauth-applications.yml
+5
-0
db/migrate/20210120221743_delete_oauth_applications_tmp_index.rb
...ate/20210120221743_delete_oauth_applications_tmp_index.rb
+18
-0
db/schema_migrations/20210120221743
db/schema_migrations/20210120221743
+1
-0
db/structure.sql
db/structure.sql
+0
-2
No files found.
changelogs/unreleased/remove-tmp-index-oauth-applications.yml
0 → 100644
View file @
164fa776
---
title
:
Remove temp index in oauth_applications table
merge_request
:
52157
author
:
type
:
other
db/migrate/20210120221743_delete_oauth_applications_tmp_index.rb
0 → 100644
View file @
164fa776
# frozen_string_literal: true
class
DeleteOauthApplicationsTmpIndex
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
INDEX_NAME
=
'tmp_index_oauth_applications_on_id_where_trusted'
disable_ddl_transaction!
def
up
remove_concurrent_index_by_name
:oauth_applications
,
INDEX_NAME
end
def
down
add_concurrent_index
:oauth_applications
,
:id
,
where:
'trusted = true'
,
name:
INDEX_NAME
end
end
db/schema_migrations/20210120221743
0 → 100644
View file @
164fa776
4bf1d277affdfa9ee772d69cb713f49f257140fb58c40bc8659d563b4cc3de29
\ No newline at end of file
db/structure.sql
View file @
164fa776
...
...
@@ -23418,8 +23418,6 @@ CREATE UNIQUE INDEX term_agreements_unique_index ON term_agreements USING btree
CREATE
INDEX
tmp_idx_deduplicate_vulnerability_occurrences
ON
vulnerability_occurrences
USING
btree
(
project_id
,
report_type
,
location_fingerprint
,
primary_identifier_id
,
id
);
CREATE
INDEX
tmp_index_oauth_applications_on_id_where_trusted
ON
oauth_applications
USING
btree
(
id
)
WHERE
(
trusted
=
true
);
CREATE
INDEX
tmp_index_on_vulnerabilities_non_dismissed
ON
vulnerabilities
USING
btree
(
id
)
WHERE
(
state
<>
2
);
CREATE
UNIQUE
INDEX
uniq_pkgs_deb_grp_architectures_on_distribution_id_and_name
ON
packages_debian_group_architectures
USING
btree
(
distribution_id
,
name
);
...
...
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