I spent nearly an entire day trying to get the node types and CCK fields migrated from a D5 site to D7. I ran into all sorts of problems, including:

#1078804: 'longtext' columns converted to varchar(255) on migration
#1066268: PHP Notice: undefined index when migrating decimal number

However, the most serious was that my number fields (at least the select lists and checkboxes) weren't migrating at all. After tons of debugging and experimentation, I tracked it down to the fact that nothing is handling the allowed_values conversion for number fields. Works for list_text, but not list_number nor list_boolean. I've got a patch, stay tuned...

Comments

dww’s picture

Assigned: Unassigned » dww
Status: Active » Needs review
StatusFileSize
new6.52 KB

This works perfectly for my site (which has a pretty wide range of D6 number fields, as it turns out). ;) Further testing would be great, and a close review from someone who really groks the D7 field API and all this stuff. I'm only figuring it out as I go here...

Thanks!
-Derek

karens’s picture

Status: Needs review » Fixed

This looks good and I've committed it. Not sure how that got missed before :(

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.