12 $schema[
'mailinglist_archive'] = array(
13 'description' =>
'Table for holding the text of the messages',
19 'description' =>
'Primary Key for table',
29 'description' =>
'Message ID from message',
35 'description' =>
'mid of message we are a reply to',
41 'description' =>
'mid of first message of thread',
45 'description' =>
'Time message was posted',
73 'description' =>
'Index to Author\'s ID in mailinglist_names'
75 'author_email' => array(
82 'description' =>
'published status, 0 = published, 1 = moderation queue, 2=waiting reply, 3=rejected',
87 'primary key' => array(
'nid'),
88 'unique key' => array(
89 'msg_id' => array(
'msg_id'),
92 'time' => array(array(
'list', 20),
'time'),
93 'thread_id' => array(
'thread_id',
'time'),
94 'author_email' => array(array(
'list', 20), array(
'author_email',40)),
95 'hour' => array(array(
'list', 20),
'hour'),
96 'msg_id' => array(array(
'msg_id', 40)),
97 'reply_to' => array(
'reply_to',
'time'),
98 'time_parsed' => array(array(
'list', 20),
'year',
'month',
'day'),
100 'foreign keys' => array(
102 'table' =>
'mailinglist_archive',
103 'columns' => array(
'reply_to' =>
'nid'),
105 'thread_id' => array(
106 'table' =>
'mailinglist_archive',
107 'columns' => array(
'thread_id' =>
'nid'),
110 'table' =>
'mailinglist_names',
111 'columns' => array(
'author' =>
'key'),
116 $schema[
'mailinglist_archive_debug'] = array(
117 'description' =>
'Table for holding the text of the messages',
123 'description' =>
'Primary Key for table',
127 'description' =>
'Time message was last updated (Debug)',
136 'full_body' => array(
141 'raw_message' => array(
146 'primary key' => array(
'nid'),
148 'updated' => array(
'updated'),
152 $schema[
'mailinglist_archive_reference'] = array(
153 'description' =>
'Table to track the references of a message',
159 'description' =>
'nid of message these are references to',
165 'description' =>
'Sequence number for which ref this is for the meesage'
170 'description' =>
'mid of message we are a reply to',
172 'ref_msg_id' => array(
176 'description' =>
'Message ID of message we are a reply to',
179 'primary key' => array(
'nid',
'idx'),
181 'ref_nid' => array(
'ref_nid'),
182 'ref_msg_id' => array(array(
'ref_msg_id', 40)),
184 'foreign keys' => array(
186 'table' =>
'mailinglist_archive',
187 'columns' => array(
'nid' =>
'nid'),
190 'table' =>
'mailinglist_archive',
191 'columns' => array(
'ref_nid' =>
'nid'),
193 'ref_msgid' => array(
194 'table' =>
'mailinglist_archive',
195 'columns' => array(
'ref_msg_id' =>
'msg_id'),
200 $schema[
'mailinglist_archive_thread'] = array(
201 'description' =>
'Table for holding information about threads',
203 'thread_id' => array(
207 'description' =>
'mid of first message of thread',
212 'description' =>
'List the thread is on',
216 'description' =>
'Time thread was started',
220 'description' =>
'Time thread was last posted to',
224 'primary key' => array(
'thread_id'),
226 'times' => array(
'list',
'start_time',
'last_time'),
231 foreach ($lists as $list) {
233 $schema += $list_schema;
mailinglist_archive_schema()
Implements hook_schema().
_mailinglist_archives_list_schema($list)
_mailinnglist)archives_list_schema()
mailinglist_archive_modules_enabled($modules)
Implements hook_modules_enabled().
mailinglist_archive_enable()
function mailinglist_archive_update_7000() { }
_mailinglist_datetime_schema($desc)
Return the schema for a 'datetime' field.
mailinglist_list_load_all($show_disabled=TRUE)
Load all mailinglists.