I just pushed some changes to Schema::Generator and the generic type
support.  The good news is, things like this now work:

  DB.create_table(:table) do
     String :name, :size=>50
  end

You can now use options with the generic type support, but there now
has to be specific support for it.  So while you can do the above, the
following will no longer work:

  DB.create_table(:table) do
     Integer :num, :size=>6
     Integer :num, :unsigned=>true
  end

Support for database specific features using options on the generic
types is now possible and fairly easy to do by just overriding a
method in the adapter subclass.  So if you want to support the :size
or :unsigned options for Integer types on your database, send in a
patch.  It's not done by default since I'm not sure about database
support.  Here are the supported options:

  String:
    :text - Use text type
    :fixed - Use char type
    :size - Use a specific size (also works with :fixed)

  Numeric/BigDecimal:
     :size - Use a specific size (scale/precision)

  Time:
     :only_time - Use time type instead of timestamp

If you used a database specific type already (string or symbol), then
there should be no effect.

This passes all specs, but please give it a test with your apps and
let me know about breakage.   There's about a week and a half until
3.0, and I'd like to get any kinks worked out before then.

Jeremy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to