nodeapi_example_schema
- Versions
- 6 – 7
nodeapi_example_schema()
Implementation of hook_schema().
Code
developer/examples/nodeapi_example.install, line 21
<?php
function nodeapi_example_schema() {
$schema['nodeapi_example'] = array(
'fields' => array(
'nid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0),
'rating' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0),
),
'primary key' => array('nid'),
);
return $schema;
}
?>Login or register to post comments 