<?php
function nodeapi_example_install() {
drupal_install_schema('nodeapi_example');
}
function nodeapi_example_uninstall() {
drupal_uninstall_schema('nodeapi_example');
}
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;
}
function nodeapi_example_update_1() {
return _system_update_utf8(array('nodeapi_example'));
}