summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-04-13 16:14:27 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2016-04-13 16:14:27 +0200
commit8fb976a3ff5fa05ae35cb03de6ca34e8c2139841 (patch)
treeda6e9ae11d3bc32c00ed58fb1e3457a11d5cd7a3 /db
parentf3a4f854494963edeeae87a5f9b2a483f0c6dbfd (diff)
downloadgitlab-ce-8fb976a3ff5fa05ae35cb03de6ca34e8c2139841.tar.gz
Fix migrations on MySQL
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20160412173418_add_ci_commit_indexes.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/db/migrate/20160412173418_add_ci_commit_indexes.rb b/db/migrate/20160412173418_add_ci_commit_indexes.rb
index c1e238bc021..603d4a41610 100644
--- a/db/migrate/20160412173418_add_ci_commit_indexes.rb
+++ b/db/migrate/20160412173418_add_ci_commit_indexes.rb
@@ -10,6 +10,10 @@ class AddCiCommitIndexes < ActiveRecord::Migration
private
def index_options
- { algorithm: :concurrently } if Gitlab::Database.postgresql?
+ if Gitlab::Database.postgresql?
+ { algorithm: :concurrently }
+ else
+ { }
+ end
end
end