[support] D7 What is the result of hook_field_schema?

Kamal Palei palei.kamal at gmail.com
Mon Oct 8 02:34:23 UTC 2012


You may like to un-install module completely and then install.
Without uninstall, in next install tables are not created properly, have
observed it few times.

-kamal
necs, blr



On Mon, Oct 8, 2012 at 6:35 AM, Jeff Greenberg <
listmail.ayendesigns at gmail.com> wrote:

> When I install a module with the following .install file:
>
> function my_widget_field_schema($field) {
>    $columns = array(
>     'duration' => array('type' => 'varchar', 'length' => 8, 'not null' =>
> FALSE),
>   );
>   return array(
>     'columns' => $columns,
>   );
> }
>
> What should the impact be on the database tables? I receive no errors, and
> watchdog says that the module is installed, and that it is enabled, but I
> see no tables added to the db that reflect the field name, widget name, etc.
>
> --
> ---
> drupal.org/user/367108
> linkedin.com/in/jeffrgreenberg
> accidentalcoder.com / ayendesigns.com
> @accidentalcoder
>
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20121008/d11a1ea5/attachment.html 


More information about the support mailing list