提交 70043da8 编写于 作者: Y Yasuo Honda

Raise an exception if :charset is not specified and large prefixes / utf8mb4 are not supported

上级 be021a80
......@@ -263,7 +263,7 @@ def create_database(name, options = {})
elsif supports_longer_index_key_prefix?
execute "CREATE DATABASE #{quote_table_name(name)} DEFAULT CHARACTER SET `utf8mb4`"
else
execute "CREATE DATABASE #{quote_table_name(name)} DEFAULT CHARACTER SET `utf8`"
raise "Configure a supported :charset and ensure innodb_large_prefix is enabled to support indexes on varchar(255) string columns."
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册