file .install don't create datatable

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
ocditimban's picture

<?php
function insertTable_schema(){
$schema['example']=array(
'fields' => array(
'nid' => array('type' =>'int','not null' => TRUE,'unsigned' => TRUE,'default' =>0),
),
'primary key' => array('nid'),
);
return $schema;
}
function insertTable_install(){
db_insert('example')
->fields(array(
'nid' =>1,
))
->execute();

}
function insertTable_uninstall() {

variable_del('example_default_status');
variable_del('example_threshold_limit');
variable_del('example_threshold_window');
}
why don't create table 'example' for me?

Boston

Group categories

More Specifically

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: