summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2014-04-16 11:26:02 +0200
committerJacob Vosmaer <contact@jacobvosmaer.nl>2014-04-23 11:08:51 +0200
commitcd61239540c00279563cc0e4ae763a569be0bef5 (patch)
treef27e65b62150547ff638e401f041e810c9ba20da /db
parent43e77099d86960401013a45f56e29bfb83368d2c (diff)
downloadgitlab-ce-cd61239540c00279563cc0e4ae763a569be0bef5.tar.gz
Move the adapter check to the migration
Diffstat (limited to 'db')
-rw-r--r--db/migrate/limits_to_mysql.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/limits_to_mysql.rb b/db/migrate/limits_to_mysql.rb
index 4dc3b830bc6..2b7afae6d7c 100644
--- a/db/migrate/limits_to_mysql.rb
+++ b/db/migrate/limits_to_mysql.rb
@@ -1,6 +1,6 @@
class LimitsToMysql < ActiveRecord::Migration
def up
- return unless ActiveRecord::Base.configurations[Rails.env]['adapter'] == 'mysql2'
+ return unless ActiveRecord::Base.configurations[Rails.env]['adapter'] =~ /^mysql/
change_column :merge_request_diffs, :st_commits, :text, limit: 2147483647
change_column :merge_request_diffs, :st_diffs, :text, limit: 2147483647