提交 973c0ef2 编写于 作者: T Tarmo Tänav 提交者: Jeremy Kemper

Create mysql binary_fields table with latin1 character set as with utf8 all...

Create mysql binary_fields table with latin1 character set as with utf8 all the limits would have to be divided by 3 to get the expected text types
Signed-off-by: NJeremy Kemper <jeremy@bitsweat.net>
上级 fa795ccf
ActiveRecord::Schema.define do
create_table :binary_fields, :force => true do |t|
create_table :binary_fields, :force => true, :options => 'CHARACTER SET latin1' do |t|
t.binary :tiny_blob, :limit => 255
t.binary :normal_blob, :limit => 65535
t.binary :medium_blob, :limit => 16777215
......@@ -9,4 +9,4 @@
t.text :medium_text, :limit => 16777215
t.text :long_text, :limit => 2147483647
end
end
\ No newline at end of file
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册