[support] D7 What is the result of hook_field_schema?

Jeff Greenberg listmail.ayendesigns at gmail.com
Mon Oct 8 11:37:50 UTC 2012


I have, but certainly the first time I installed it there should have been no issue.

On Oct 7, 2012, at 10:34 PM, Kamal Palei <palei.kamal at gmail.com> wrote:

> 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/ ]
> 
> -- 
> [ Drupal support list | http://lists.drupal.org/ ]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20121008/8c909037/attachment.html 


More information about the support mailing list