rake db:schema:dump under the activerecord-jdbcmysql-adapter does not dump 
limits on text column types
------------------------------------------------------------------------------------------------------

                 Key: JRUBY-4031
                 URL: http://jira.codehaus.org/browse/JRUBY-4031
             Project: JRuby
          Issue Type: Bug
          Components: JRuby-extras
    Affects Versions: JRuby 1.3.1
         Environment: Mac OSX, Rails 2.2.2, activerecord-jdbcmysql-adapter 
(0.9.1) gem
            Reporter: Serguei Filimonov


having a longtext column in the mysql database like this:
 description | longtext   | YES  |     | NULL    |                |

under MRI Ruby 1.8.6 , rake db:schema:dump generates a schema.rb line like this:
t.text     "description", :limit => 2147483647

under jruby with activerecord-jdbcmysql-adapter, the line is:
t.text     "description"

I think this is important, because rails uses the limits to know which column 
type to assign in the database when creating a table from schema.rb.  This 
means db:test:prepare will create your test database with different (and 
incorrect) schema than your development database.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to