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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
14551424
Commit
14551424
authored
Jul 25, 2017
by
Alexis Reigel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add unique indexes to gpg_keys
parent
07dbd564
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
db/migrate/20170222111732_create_gpg_keys.rb
db/migrate/20170222111732_create_gpg_keys.rb
+2
-1
db/schema.rb
db/schema.rb
+2
-1
No files found.
db/migrate/20170222111732_create_gpg_keys.rb
View file @
14551424
...
...
@@ -12,7 +12,8 @@ class CreateGpgKeys < ActiveRecord::Migration
t
.
text
:key
t
.
index
:primary_keyid
,
length:
Gitlab
::
Database
.
mysql?
?
20
:
nil
t
.
index
:primary_keyid
,
unique:
true
,
length:
Gitlab
::
Database
.
mysql?
?
20
:
nil
t
.
index
:fingerprint
,
unique:
true
,
length:
Gitlab
::
Database
.
mysql?
?
20
:
nil
end
end
end
db/schema.rb
View file @
14551424
...
...
@@ -549,7 +549,8 @@ ActiveRecord::Schema.define(version: 20170725145659) do
t
.
text
"key"
end
add_index
"gpg_keys"
,
[
"primary_keyid"
],
name:
"index_gpg_keys_on_primary_keyid"
,
using: :btree
add_index
"gpg_keys"
,
[
"fingerprint"
],
name:
"index_gpg_keys_on_fingerprint"
,
unique:
true
,
using: :btree
add_index
"gpg_keys"
,
[
"primary_keyid"
],
name:
"index_gpg_keys_on_primary_keyid"
,
unique:
true
,
using: :btree
add_index
"gpg_keys"
,
[
"user_id"
],
name:
"index_gpg_keys_on_user_id"
,
using: :btree
create_table
"gpg_signatures"
,
force: :cascade
do
|
t
|
...
...
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