Skip to content
Snippets Groups Projects
Commit 548cec6e authored by Stan Hu's avatar Stan Hu
Browse files

Change the MySQL collation type to utf8_bin to ensure case-sensitive tags are supported

parent c4aa7003
No related branches found
No related tags found
No related merge requests found
# This migration is a duplicate of 20150425164651_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
# It shold be applied before the index additions to ensure that `name` is case sensitive.
class GitlabChangeCollationForTagNames < ActiveRecord::Migration
def up
if ActsAsTaggableOn::Utils.using_mysql?
execute("ALTER TABLE tags MODIFY name varchar(255) CHARACTER SET utf8 COLLATE utf8_bin;")
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment