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
79bb5ee8
Commit
79bb5ee8
authored
Jan 06, 2021
by
Adam Hegyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove TMP index for emails table
parent
a034790d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
2 deletions
+26
-2
changelogs/unreleased/remove-tmp-emails-index.yml
changelogs/unreleased/remove-tmp-emails-index.yml
+5
-0
db/migrate/20210106153021_drop_tmp_index_on_emails.rb
db/migrate/20210106153021_drop_tmp_index_on_emails.rb
+20
-0
db/schema_migrations/20210106153021
db/schema_migrations/20210106153021
+1
-0
db/structure.sql
db/structure.sql
+0
-2
No files found.
changelogs/unreleased/remove-tmp-emails-index.yml
0 → 100644
View file @
79bb5ee8
---
title
:
Remove tmp_index_for_email_unconfirmation_migration index in the emails table
merge_request
:
50981
author
:
type
:
other
db/migrate/20210106153021_drop_tmp_index_on_emails.rb
0 → 100644
View file @
79bb5ee8
# frozen_string_literal: true
class
DropTmpIndexOnEmails
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
EMAIL_INDEX_NAME
=
'tmp_index_for_email_unconfirmation_migration'
disable_ddl_transaction!
def
up
Gitlab
::
BackgroundMigration
.
steal
(
'WrongfullyConfirmedEmailUnconfirmer'
)
remove_concurrent_index_by_name
(
:emails
,
EMAIL_INDEX_NAME
)
end
def
down
add_concurrent_index
(
:emails
,
:id
,
where:
'confirmed_at IS NOT NULL'
,
name:
EMAIL_INDEX_NAME
)
end
end
db/schema_migrations/20210106153021
0 → 100644
View file @
79bb5ee8
71e005116082a59e40194fe5f9a500e31d67a011500d12aeecd59cb64d611848
\ No newline at end of file
db/structure.sql
View file @
79bb5ee8
...
@@ -23105,8 +23105,6 @@ CREATE INDEX temporary_index_vulnerabilities_on_id ON vulnerabilities USING btre
...
@@ -23105,8 +23105,6 @@ CREATE INDEX temporary_index_vulnerabilities_on_id ON vulnerabilities USING btre
CREATE
UNIQUE
INDEX
term_agreements_unique_index
ON
term_agreements
USING
btree
(
user_id
,
term_id
);
CREATE
UNIQUE
INDEX
term_agreements_unique_index
ON
term_agreements
USING
btree
(
user_id
,
term_id
);
CREATE
INDEX
tmp_index_for_email_unconfirmation_migration
ON
emails
USING
btree
(
id
)
WHERE
(
confirmed_at
IS
NOT
NULL
);
CREATE
INDEX
tmp_index_on_vulnerabilities_non_dismissed
ON
vulnerabilities
USING
btree
(
id
)
WHERE
(
state
<>
2
);
CREATE
INDEX
tmp_index_on_vulnerabilities_non_dismissed
ON
vulnerabilities
USING
btree
(
id
)
WHERE
(
state
<>
2
);
CREATE
UNIQUE
INDEX
unique_merge_request_metrics_by_merge_request_id
ON
merge_request_metrics
USING
btree
(
merge_request_id
);
CREATE
UNIQUE
INDEX
unique_merge_request_metrics_by_merge_request_id
ON
merge_request_metrics
USING
btree
(
merge_request_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