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
6813f0cf
Commit
6813f0cf
authored
Jul 08, 2016
by
Paco Guzman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid adding index if already exists
parent
07cd7f4b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
CHANGELOG-EE
CHANGELOG-EE
+1
-0
db/migrate/20160301174731_add_fingerprint_index.rb
db/migrate/20160301174731_add_fingerprint_index.rb
+2
-1
No files found.
CHANGELOG-EE
View file @
6813f0cf
...
...
@@ -2,6 +2,7 @@ Please view this file on the master branch, on stable branches it's out of date.
v 8.10.0 (unreleased)
- Rename Git Hooks to Push Rules
- Fix EE keys fingerprint add index migration if came from CE
v 8.9.5
- Fix of quoted text in lock tooltip. !518
...
...
db/migrate/20160301174731_add_fingerprint_index.rb
View file @
6813f0cf
...
...
@@ -2,6 +2,7 @@
class
AddFingerprintIndex
<
ActiveRecord
::
Migration
disable_ddl_transaction!
# https://gitlab.com/gitlab-org/gitlab-ee/issues/764
def
change
args
=
[
:keys
,
:fingerprint
]
...
...
@@ -9,6 +10,6 @@ class AddFingerprintIndex < ActiveRecord::Migration
args
<<
{
algorithm: :concurrently
}
end
add_index
(
*
args
)
add_index
(
*
args
)
unless
index_exists?
(
:keys
,
:fingerprint
)
end
end
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