summaryrefslogtreecommitdiff
path: root/db/migrate/markdown_cache_limits_to_mysql.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/markdown_cache_limits_to_mysql.rb')
-rw-r--r--db/migrate/markdown_cache_limits_to_mysql.rb13
1 files changed, 13 insertions, 0 deletions
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