summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorLuke "Jared" Bennett <lbennett@gitlab.com>2017-05-04 11:21:40 +0100
committerLuke "Jared" Bennett <lbennett@gitlab.com>2017-05-04 11:21:40 +0100
commitd34f6764146add6a9fc928f3a87b902c02b43742 (patch)
treee133d45819379bedefd3411a246c218e18d05027 /db/migrate
parent77bbc1c4af087d009fdfa3d7d4c9a720b7cc9c5b (diff)
parentef71bf6278759aafb1a480916cfafb9c9650eddc (diff)
downloadgitlab-ce-d34f6764146add6a9fc928f3a87b902c02b43742.tar.gz
Merge remote-tracking branch 'origin/master' into add-sentry-js-again-with-vue
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20170502091007_markdown_cache_limits_to_mysql.rb2
-rw-r--r--db/migrate/markdown_cache_limits_to_mysql.rb13
2 files changed, 15 insertions, 0 deletions
diff --git a/db/migrate/20170502091007_markdown_cache_limits_to_mysql.rb b/db/migrate/20170502091007_markdown_cache_limits_to_mysql.rb
new file mode 100644
index 00000000000..008a94d8334
--- /dev/null
+++ b/db/migrate/20170502091007_markdown_cache_limits_to_mysql.rb
@@ -0,0 +1,2 @@
+# rubocop:disable all
+require_relative 'markdown_cache_limits_to_mysql'
diff --git a/db/migrate/markdown_cache_limits_to_mysql.rb b/db/migrate/markdown_cache_limits_to_mysql.rb
new file mode 100644
index 00000000000..f6686db3dc0
--- /dev/null
+++ b/db/migrate/markdown_cache_limits_to_mysql.rb
@@ -0,0 +1,13 @@
+class MarkdownCacheLimitsToMysql < ActiveRecord::Migration
+ DOWNTIME = false
+
+ def up
+ return unless Gitlab::Database.mysql?
+
+ change_column :snippets, :content_html, :text, limit: 2147483647
+ end
+
+ def down
+ # no-op
+ end
+end