2015-05-07 23:26:45 +00:00
|
|
|
# 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.
|
|
|
|
|
2018-11-13 07:27:31 +00:00
|
|
|
class GitlabChangeCollationForTagNames < ActiveRecord::Migration[4.2]
|
2015-05-07 23:26:45 +00:00
|
|
|
def up
|
|
|
|
if ActsAsTaggableOn::Utils.using_mysql?
|
|
|
|
execute("ALTER TABLE tags MODIFY name varchar(255) CHARACTER SET utf8 COLLATE utf8_bin;")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|