By nimrod98 on
Hey everyone,
Yet another newbie question regarding drupal 6 module:
<?php
function jquery_vote_schema() {
$schema['jquery_vote3'] = array(
'fields' => array(
'nid' => array('type' => 'int', 'not null' => TRUE, 'default' => 0),
'uid' => array('type' => 'int', 'not null' => TRUE, 'default' => 0),
'score' => array('type' => 'int', 'not null' => TRUE, 'default' => 0),
)
);
return $schema;
}
function jquery_vote_install() {
// Create my tables.
drupal_install_schema('jquery_vote');
}
function jquery_vote_uninstall() {
// Drop my tables.
drupal_uninstall_schema('jquery_vote');
}
This is my .install module, but it doesn't seem to create the table jquery_vote3 at all. Am I missing something? I've been looking at it for quite a bit but no luck. Any help greatly appreciated!!