Posted by ocditimban on October 2, 2011 at 2:15am
<?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?