#1149 ✓resolved
Giao Phan

dm-migration cannot add a text field

Reported by Giao Phan | December 10th, 2009 @ 03:44 PM

When I try a migration like
migration 1, :test do
up do

create_table :test do
  column :text, DataMapper::Types::Text

end down do end end

with a MYSQL DB, it creates a varchar(65536) column instead of a TEXT column. The code is first looking for the primitive inside the class (which is String), and then later looks that primitive up in the adapter type_map. It seems like we should just be looking up the type in the type_class directly?

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »


Referenced by