BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
4e53131f
Commit
4e53131f
authored
Jul 26, 2017
by
Alexis Reigel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add unique index for gpg_signatures#commit_sha
parent
fef030c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
20170613154149_create_gpg_signatures.rb
db/migrate/20170613154149_create_gpg_signatures.rb
+1
-1
schema.rb
db/schema.rb
+1
-1
No files found.
db/migrate/20170613154149_create_gpg_signatures.rb
View file @
4e53131f
...
...
@@ -16,7 +16,7 @@ class CreateGpgSignatures < ActiveRecord::Migration
t
.
text
:gpg_key_user_name
t
.
text
:gpg_key_user_email
t
.
index
:commit_sha
,
length:
Gitlab
::
Database
.
mysql?
?
20
:
nil
t
.
index
:commit_sha
,
unique:
true
,
length:
Gitlab
::
Database
.
mysql?
?
20
:
nil
t
.
index
:gpg_key_primary_keyid
,
length:
Gitlab
::
Database
.
mysql?
?
20
:
nil
end
end
...
...
db/schema.rb
View file @
4e53131f
...
...
@@ -565,7 +565,7 @@ ActiveRecord::Schema.define(version: 20170725145659) do
t
.
text
"gpg_key_user_email"
end
add_index
"gpg_signatures"
,
[
"commit_sha"
],
name:
"index_gpg_signatures_on_commit_sha"
,
using: :btree
add_index
"gpg_signatures"
,
[
"commit_sha"
],
name:
"index_gpg_signatures_on_commit_sha"
,
u
nique:
true
,
u
sing: :btree
add_index
"gpg_signatures"
,
[
"gpg_key_id"
],
name:
"index_gpg_signatures_on_gpg_key_id"
,
using: :btree
add_index
"gpg_signatures"
,
[
"gpg_key_primary_keyid"
],
name:
"index_gpg_signatures_on_gpg_key_primary_keyid"
,
using: :btree
add_index
"gpg_signatures"
,
[
"project_id"
],
name:
"index_gpg_signatures_on_project_id"
,
using: :btree
...
...
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