3 function privatemsg_schema() {
5 $schema['pm_index'] = array(
6 'description' => t('{pm_index} holds indexing information about messages and recepients for fast retrieval'),
9 'description' => t('Private Message ID'),
15 'description' => t('Messages thread ID'),
21 'description' => t('UID of the recipient'),
27 'description' => t('UID of the author'),
33 'description' => t('Time when the message was sent'),
39 'description' => t('Whether the user read his message'),
47 '`mid`' => array('`mid`'),
48 '`author`' => array('`author`'),
49 '`thread_id`' => array('`thread_id`'),
50 '`recipient`' => array('`recipient`'),
51 '`timestamp`' => array('`timestamp`'),
52 '`new`' => array('`mid`','`recipient`','`new`',),
56 $schema['pm_message'] = array(
57 'description' => t('{pm_messages} holds the message information'),
60 'description' => t('Private Message ID'),
66 'description' => t('UID of the author'),
72 'description' => t('Subject text of the message'),
78 'description' => t('Body of the message'),
84 'primary key' => array('mid'),
86 '`author`' => array('`author`'),
87 '`subject`' => array(array('`subject`', 20)),
94 function privatemsg_install() {
95 drupal_install_schema('privatemsg');
99 function privatemsg_uninstall() {
100 drupal_uninstall_schema('privatemsg');