Changing input type on columns in existing tables
selfea - October 29, 2008 - 23:21
| Project: | Table Manager |
| Version: | HEAD |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | pobster |
| Status: | active |
Jump to:
Description
It would be awesome if we could change the input type on a column without having to recreate the table (since delete column doesn't work). Especially for those of us with bigger tables, it's quite cumbersome to have to recreate the entire table just so you can change it from numbers to text input.
:)

#1
Mehhhhh as easy as that is to implement (indeed, you can do it right now by simply removing the 'disabled' line from the function which displays the table editing screen) it's validation which is the problem... Changing a text column to a numeric column for example, means all rows have to be validated to make sure those cells contain only numbers... Then... If they don't... What next? Display all those rows for editing? Blank those rows? Return a validation error? Meh, I just know if I implement that, (as per usual) I'll get a hundred emails requesting different behavior.
...And yeah, apologies delete column still doesn't work ;o) There's just no really good way to fudge back that functionality after Drupal core gained form_ids and tokens! I'd really love to take a month or so off work to rewrite this module again (and write it well) but of course, that's not really feasible!
Thanks,
Pobster
#2