mymodule.install file not creating the table in drupal 7 I have a very simple table in my .install file and for some reason is not creating the table. What can it be? something i have to add in the .info file? please help.

Its a drupal 7.

this is what i have in my my_module.install file.

function my_module_schema() {
  $schema['my_module_config'] = array(
    'description' =&gt; 'Configuration settings for the my_module web service.',
    'fields' =&gt; array(
      'name' =&gt; array(
        'description' =&gt; 'Name ',
        'type' =&gt; 'varchar',
        'length' =&gt; 50,
        'not null' =&gt; TRUE,
        'default' =&gt; '',
      ),
    ),
  );

  return $schema;
}
you should uninstall the module
write the hook_schema function
enable the module.


You should also specify the  primary key in the hook_schema

 'primary key' =&gt; array('field_name'),


You can check the drupal link for the hook_schema