Snippet content_html for MySQL exceeds length limit
Example: https://gitlab.com/gitlab-org/gitlab-ce/builds/15380974
# ------------------
# --- Caused by: ---
# Mysql2::Error:
# Data too long for column 'content_html' at row 1
# ./config/initializers/connection_fix.rb:20:in `execute'
Finished in 11 minutes 34 seconds (files took 17.58 seconds to load)
560 examples, 4 failures
Failed examples:
rspec ./spec/features/snippets/show_spec.rb:42 # Snippet Markdown file visiting directly displays the blob using the rich viewer
rspec ./spec/features/snippets/show_spec.rb:66 # Snippet Markdown file visiting directly switching to the simple viewer displays the blob using the simple viewer
rspec ./spec/features/snippets/show_spec.rb:87 # Snippet Markdown file visiting directly switching to the simple viewer switching to the rich viewer again displays the blob using the rich viewer
rspec ./spec/features/snippets/show_spec.rb:108 # Snippet Markdown file visiting with a line number anchor displays the blob using the simple viewer
We probably need to add a migration for MySQL similar to the add_limits_to_mysql
to change the column type to raise the limit
field.
/cc: @rymai