Skip to content

Commit

Permalink
Create mysql binary_fields table with latin1 character set as with ut…
Browse files Browse the repository at this point in the history
…f8 all the limits would have to be divided by 3 to get the expected text types

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information
tarmo authored and jeremy committed Aug 26, 2008
1 parent d093e90 commit eae903a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activerecord/test/schema/mysql_specific_schema.rb
@@ -1,5 +1,5 @@
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
Expand All @@ -9,4 +9,4 @@
t.text :medium_text, :limit => 16777215
t.text :long_text, :limit => 2147483647
end
end
end

0 comments on commit eae903a

Please sign in to comment.