Rob Kinyon wrote:
> Have you tried just using the column without declaring the enum
> values? The stuff in column_info isn't really used unless you're
> creating the schema from DBIC. DBIC doesn't actually do any validation
> of enum values (or anything else, for that matter) when you read from
> or write to the database.

I hadn't no; I foolishly assumed that all the data in add_columns was
there for some purpose :)  But you're quite right, there seems to be no
need to jump through the remove_column, add_column hoop.

So I've just created a specific method to read the enum values from the
database. That seems to work.

Thanks, Dave


_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[email protected]

Reply via email to