schema api enum data type
Hello all, I'm upgrading my module to drupal 6 and was using the enum data type, how can I handle this in the schema API? I searched the documentation but no enum and only a comment that wasn't answered. Any pointers appreciated. -- Ashraf Amayreh http://blogs.aamayreh.org
Forgot that I got rid of these enums in later update hooks, so I no longer need that. Although if there's a standard way of handling them it would be nice to know :) On Thu, Jun 5, 2008 at 5:11 PM, Ashraf Amayreh <mistknight@gmail.com> wrote:
Hello all,
I'm upgrading my module to drupal 6 and was using the enum data type, how can I handle this in the schema API?
I searched the documentation but no enum and only a comment that wasn't answered. Any pointers appreciated.
-- Ashraf Amayreh http://blogs.aamayreh.org
-- Ashraf Amayreh http://blogs.aamayreh.org
Well, this is the map of database types. There is no reference to enum or set. http://api.drupal.org/api/function/db_type_map/6 I think you may be able to pass enum in as the type and/or pgsql_type, then you can put the options in the length (with each option separated by commas). But, I am unsure about possible problems. So, you (or someone else) would need to run through the code to see if it makes sense to do that. http://api.drupal.org/api/function/drupal_install_schema/6 Craig Jackson On Thu, Jun 5, 2008 at 8:21 AM, Ashraf Amayreh <mistknight@gmail.com> wrote:
Forgot that I got rid of these enums in later update hooks, so I no longer need that. Although if there's a standard way of handling them it would be nice to know :)
On Thu, Jun 5, 2008 at 5:11 PM, Ashraf Amayreh <mistknight@gmail.com> wrote:
Hello all,
I'm upgrading my module to drupal 6 and was using the enum data type, how can I handle this in the schema API?
I searched the documentation but no enum and only a comment that wasn't answered. Any pointers appreciated.
-- Ashraf Amayreh http://blogs.aamayreh.org
-- Ashraf Amayreh http://blogs.aamayreh.org
participants (2)
-
Ashraf Amayreh -
Craig Jackson