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
7e381429
Commit
7e381429
authored
Sep 12, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
46f664aa
19289323
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
1 deletion
+24
-1
changelogs/unreleased/sh-add-index-members-expires.yml
changelogs/unreleased/sh-add-index-members-expires.yml
+5
-0
db/migrate/20190912061145_add_index_to_members_on_expires_at.rb
...rate/20190912061145_add_index_to_members_on_expires_at.rb
+17
-0
db/schema.rb
db/schema.rb
+2
-1
No files found.
changelogs/unreleased/sh-add-index-members-expires.yml
0 → 100644
View file @
7e381429
---
title
:
Fix member expiration not always working
merge_request
:
32951
author
:
type
:
performance
db/migrate/20190912061145_add_index_to_members_on_expires_at.rb
0 → 100644
View file @
7e381429
# frozen_string_literal: true
class
AddIndexToMembersOnExpiresAt
<
ActiveRecord
::
Migration
[
5.2
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
add_concurrent_index
:members
,
:expires_at
end
def
down
remove_concurrent_index
:members
,
:expires_at
end
end
db/schema.rb
View file @
7e381429
...
...
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
2019_09_1
0_000130
)
do
ActiveRecord
::
Schema
.
define
(
version:
2019_09_1
2_061145
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"pg_trgm"
...
...
@@ -1997,6 +1997,7 @@ ActiveRecord::Schema.define(version: 2019_09_10_000130) do
t
.
boolean
"ldap"
,
default:
false
,
null:
false
t
.
boolean
"override"
,
default:
false
,
null:
false
t
.
index
[
"access_level"
],
name:
"index_members_on_access_level"
t
.
index
[
"expires_at"
],
name:
"index_members_on_expires_at"
t
.
index
[
"invite_email"
],
name:
"index_members_on_invite_email"
t
.
index
[
"invite_token"
],
name:
"index_members_on_invite_token"
,
unique:
true
t
.
index
[
"requested_at"
],
name:
"index_members_on_requested_at"
...
...
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