t('The single table necessary for message storage.'), 'fields' => array( 'mid' => array( 'description' => t('Primary Key: The message ID.'), 'type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE, ), 'from' => array( 'default' => '', 'description' => t('The author, or who wrote the message.'), 'length' => 255, 'not null' => TRUE, 'type' => 'varchar', ), 'to' => array( 'default' => '', 'description' => t('The recipient, or the user the message is to be delivered.'), 'length' => 255, 'not null' => TRUE, 'type' => 'varchar', ), 'contents' => array( 'default' => '', 'description' => t('The contents, or what to be delivered.'), 'not null' => TRUE, 'type' => 'text', ), 'sent' => array( 'type' => 'int', 'not null' => TRUE, 'default' => 0, 'description' => t('Timestamp for when the message was sent.'), ), ), 'primary key' => array('mid'), ); return $schema; } /** * Implementation of hook_install(). */ function bot_tell_install() { drupal_install_schema('bot_tell'); } /** * Implementation of hook_uninstall(). */ function bot_tell_uninstall() { drupal_uninstall_schema('bot_tell'); }