Can't create table when installing module I have a simple 'form_example' module and I want to add a database table when instaling module. I created this form_example.install file:

&lt;?php

function form_example_schema() {
    $schema['form_example_table'] = array(
        'description' =&gt; 'Table for form_pokus module',
        'fields' =&gt; array(
            'id'        =&gt; array('type' =&gt; 'serial', 'unsigned' =&gt; TRUE, 'not null' =&gt; TRUE),
            'name'      =&gt; array('type' =&gt; 'varchar','length' =&gt; 30,     'not null' =&gt; TRUE, 'default' =&gt; ''),
            'gender'    =&gt; array('type' =&gt; 'varchar','length' =&gt; 30,     'not null' =&gt; TRUE, 'default' =&gt; ''),
            'message'   =&gt; array('type' =&gt; 'text', 'not null' =&gt; TRUE,   'default'  =&gt; ''),
            'status'    =&gt; array('type' =&gt; 'text', 'not null' =&gt; FALSE ),
            'created'   =&gt; array('type' =&gt; 'int',  'not null' =&gt; TRUE,   'default'  =&gt; 0),          
        ),

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

    );

    return $schema;
}


I disabled this module, then deleted it from directory, flushed all chaches and then installed and enabled again this module, now with .install file. But new table is not appearing in database. Im using PostgresSQL. What I am missing?
Follow the standard procedure to unisntall a module.

In short, once the module is disabled it may appear in the Uninstall tab of the modules page. Select the module in that tab and click 'Uninstall'. 

When you disable a module its configuration and tables are kept, so if you enable again all data and configuration remains the same. When you uninstall a module you tell Drupal to wipe out any configuration and data by that module. When enabling it again Drupal detects that there's no configuration nor tables of that module and creates them again. If you only disable the module and enable it Drupal doesn't create configuration and tables because they should be in the database,m as Drupal knows module was enabled once.

In module list you have the available modules, some them enabled and some them disabled. If oyu want to comnpletely remove a module you have to disable, uninstall and delete the folder manually.