When upgrading from D6 to D7, a longtext (text_long) field with widget autocomplete_widgets_flddata is not properly migrated, resulting in a PDO exception due to bad SQL syntax ('VARCHAR()' with no size).
Related issue with suggested fix strategy: http://drupal.org/node/1417626#comment-6262340
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | autocomplete_widgets-migrate-fix-1790758-2.patch | 2.02 KB | jromine |
| #1 | autocomplete_widgets-migrate-fix-1790758-1.patch | 642 bytes | jromine |
Comments
Comment #1
jromine commentedPatch attached
Comment #2
jromine commentedSorry, the earlier patch set the field type to longtext, which is not compatible with the autocomplete widget.
This patch changes the (longtext) field type to 'text', and also fixes migrating fields using the allowed values autocomplete widget.
Comment #3
bleen commentedI'll be honest, I'm not sure Ill ever really have the opportunity to test this patch out. I'd consider including it if someone else could offer a review and verify that it works.
Comment #4
presleyd commentedThe function worked for me. It needs to be rerolled for the current version though. The line numbers are off.
Comment #5
bleen commentedthanks for reviewing ....
committed