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...
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1092840-1.content_migrate_allowed_values.patch | 6.52 KB | dww |
Comments
Comment #1
dwwThis 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
Comment #2
karens commentedThis looks good and I've committed it. Not sure how that got missed before :(